Menu Navigatrion Code position

  • Unknown's avatar

    Hello all,

    i’d like to hide some pages in my Top Menu (and show them only in the Sidebar). I know that i should look for the MENU NAVIGATION CODE and change it as follows, but i can’t find it!!!
    Could someone help me ..please?
    Thanks

    m.

    “In most of the WordPress themes, Menu Navigation Code appears in header.php where you will have to make some changes. The navigation code should be something like this,

    1: <?php wp_list_pages(‘depth=1&title_li=’); ?>

    You will have to find the Page-ID of the pages which you want to hide from the menu. Page-ID is similar to the Post-ID which you can find by editing the same page from your WordPress admin. The ID will appear in the URL of that edit page.

    Change the above piece of code to the below mention code where I have to exclude the page with Page-ID 462 from the Menu List,

    1: <?php wp_list_pages(‘depth=1&exclude= 462&title_li=’); ?>”

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    The instructions you found are for a self-hosted wordpress site and will not work on a wordpress.com site such as the one linked to your username, http://constructionweek2011.wordpress.com/ .

    You create two custom menus. One you assign to the top navigation location and include only the pages and such that you want to show there.

    You create a second custom menu with the items you want to show in the sidebar, and then use the custom menu widget in the sidebar

  • Unknown's avatar

    Many thanks for the prompt answer!! really useful (and me..well, really inexpert :p)

  • Unknown's avatar

    Not a problem, and you are welcome. If you have any problems, do let us know.

  • The topic ‘Menu Navigatrion Code position’ is closed to new replies.