WordPress.org

Ready to get started?Download WordPress

Forums

page not visible in sidebar but in header menu (3 posts)

  1. kyaniet01
    Member
    Posted 5 years ago #

    Is it possible to create a page that is NOT visible in the sidebar but can be accessed through the menu in the header ?!

    The first line of my sidebar.php of my theme states :
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>

    And yes, I do use widgets (=dynamic sidebar) to fill the sidebar so PHP automatically discards any following lines including wp_list_pages('exclude'). Or so it seems to me !

    You can see at my website what I mean.
    http://www.massagepraktijk-kyaniet.nl
    I don't want the pages "Over mij", "Over de praktijk" and "Gedragsregels" in the sidebar because they already have a place in the header menu.

    I hope someone can help or at least tell me if it is possible or not.

    Thank you !

  2. Eric Mann
    Member
    Posted 5 years ago #

    Go to your widgets menu and expand the 'Pages' widget to edit it. There's an option to exclude pages based on the page ID. Enter ther IDs of the three pages you want to exclude and they will disappear from your sidebar.

  3. kyaniet01
    Member
    Posted 5 years ago #

    Ericmann, thank you very much. It's that easy !

Topic Closed

This topic has been closed to new replies.

About this Topic