Sidebar on one page only – Template "Blank"
-
I took over an existing, WordPress site (as in, I did not build it). The template they used is called “Blank”. I do not have the typical WordPress functions, like the one I need – selecting pages for the sidebar.
Here’s what I gleaned from the forums, to call the sidebar to my one page. What I need is how to stop it from showing up on the other pages. The code is written in the templates “pages.php”. Any other code options welcomed!
Thanks!
<?php get_sidebar( $name );
if ( is_page( ‘page-6’ ) ) :
get_sidebar();
else :
get_sidebar(); /*can I put something here to prevent the sidebar from showing on all the other pages? */
endif
?>
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Sidebar on one page only – Template "Blank"’ is closed to new replies.