That’s a nice option, but I agree with sri, right now it really depends on your theme. You can do a work-around through is_page()
. You need to write something like this on your page.php theme file:
1 2 3 4 5 6 7 | <?php if (is_page('projects')) { if ( is_active_sidebar( 'sidebar-navigation' )) { dynamic_sidebar( 'sidebar-navigation' ); } } ?> |
If you want to show the sidebar on other pages as well, you can use logic or like this:
1 | if (is_page('projects') || is_page('home') || is_page('post-page')) |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.