• Resolved gabrielavio

    (@gabrielavio)


    Hi,

    I want to make certain pages invisible in the navigation menu.

    I read about the wp_list_pages function and the exclude paramenter, but I just can’t find the function in the php files for the leaf theme.

    Where can I use this:

      <?php wp_list_pages(‘exclude=17,38’ ); ?>

    Or what else do I need to do?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Could you instead make a new menu in Appearance > Menus (dashboard) and then only add in the menu items you want?

    Thread Starter gabrielavio

    (@gabrielavio)

    I’m not sure what you mean, because I never added these pages to the Appearance > Menus.
    I just did Pages > Add new – and they were automatically showing in the nav menu.
    These pages don’t show up in the Appearance > Menus though.

    Any other suggestions?

    tizz

    (@tizz)

    Make a new menu in Appearance > Menus (dashboard) and then only add in the menu items you want

    It’s the better suggestion

    Thread Starter gabrielavio

    (@gabrielavio)

    Hi guys,
    Thanks for your help! I was a little stubborn, but I tried it out and you were absolutely right 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Make pages invisible in top nav menu’ is closed to new replies.