WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing page from the nav menu (6 posts)

  1. mattio
    Member
    Posted 6 years ago #

    Hi, I have a page that I created but everytime I create a new page it adds it to the navbar. In the older version of WP I could click something that says not display in nav or something. What do I do to do this?

    For example I have my website and I dont want to display "Action Audio Pro" neither "VFX Gallery"

    http://www.vfxlobby.com

    All help would be greatly appreciated,

    Thanks,
    Matt

  2. mrkingid
    Member
    Posted 6 years ago #

    Make either of those pages children of another page. Do this by editing the page and selecting a "Parent page". It will then remove it from the nav.

  3. mattio
    Member
    Posted 6 years ago #

    Thanks for the fast reply.

    But when I do this it changes the permalink to something like /contact-us/vfx-gallery instead of what i want just /vfx-galley. Also it doesn't remove from the nav. It is still visible. I think maybe if I could make the page private and find somewhere in the code to remove the Private: text as it is displayed when the page is private. Anyone know what part of the code its located in?

  4. asfodel
    Member
    Posted 6 years ago #

    You could edit out the <?php wp_list_pages ?> from the navigation bar so that pages are not automatically displayed, and then manually enter the links to the pages you want displayed.

    Depending on your theme, the code will likely be in the header file or main index template.

  5. mattio
    Member
    Posted 6 years ago #

    Thanks for the reply asfodel :)

    So i'll find that patch of code but could you give me an example of what it would look like in code view. like <?php wp_list_pages ?> then like how would I enter the links manually to the pages I want being displayed?

    Thanks,
    Matt

  6. mattio
    Member
    Posted 6 years ago #

    Thanks for all your replies. I just found a page exclusion plugin for WordPress so am using that now. Works really well. Thanks for everything guys :)

Topic Closed

This topic has been closed to new replies.

About this Topic