WordPress.org

Forums

Pages in WordPress making not appear on Header (3 posts)

  1. Alex2010
    Member
    Posted 5 years ago #

    I want to have several pages but not all to appear on my top header gif. How do I make some pages appear on my header bar and others not? I looked into making the page private but then the page cannot be viewed when you click on a link to that page on the blog. Any other way?

    Is there away to delete sidebars for certain pages?

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    How do I make some pages appear on my header bar and others not?

    If your theme uses wp_list_pages, have a look at the exclude parameter.

    Is there away to delete sidebars for certain pages?

    2 options:

    1. Create a custom page template that doesn't include sidebars an then apply that template to pages as required.

    2. Make the call to get_sidebar() conditional on the page id or name:

    <?php if( !is_page(array(42,'about-me','About Me')) ) get_sidebar();?>

    http://codex.wordpress.org/Conditional_Tags

  3. Alex2010
    Member
    Posted 5 years ago #

    Thank you very much for this information

Topic Closed

This topic has been closed to new replies.

About this Topic