Return to Support

Remove page title from header nav but keep in sidebar

Home Forums Graphene WordPress theme Support Remove page title from header nav but keep in sidebar

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2853
    alanrogers
    Member

    Hi, my header navigation is becoming a bit full, so I have some pages I would like to be excluded from the header, but still show up in the sidebar page widget.

    I have the Exclude Pages plugin, but of course this excludes it from the header and sidebar page navigation.

    I found a suggestion about adding this code (probably to Header.php)-

    <?php wp_list_pages(‘title_li=&depth=2&sort_column=menu_order&exclude=67,68′); ?>

    but couldn’t find where it might go?

    Does anyone have a solution please?

    Alan

    http://www.parkrowhairandbeauty.com

    #19770

    I wouldn’t do any of that. You don’t need a plugin (which risks a plugin conflict), and you definitely don’t want to edit core files.

    Instead, just use a custom menu. It’s easy (and fun!). Use one for the header navigation and another for the sidebar. Here’s a tutorial: http://blog.kjodle.net/2011/08/25/how-to-create-and-use-custom-menus-in-wordpress/

    As far as I know, you can have as many custom menus as you want.

    #19771
    alanrogers
    Member

    Thank you Kenneth, it’s quite late here now in the UK, but I will have a look through this in the morning. It looks like this will resolve my query.

    Many thanks, I really appreciate you taking the time to respond,

    Alan

    #19772
    alanrogers
    Member

    That tutorial was very easy to follow and really helped me out. I’ve never really taken the time to work with Menus before, but I understand a whole lot more now!

    Thanks again Kenneth, I have now achieved the two different navigation menus in the header and sidebar that I wanted to – and been able to deactivate the Exclude Pages” plugin (not that it was causing a problem).

    All the best,

    Alan

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.