WordPress.org

Ready to get started?Download WordPress

Forums

Hide sub pages from top nav (4 posts)

  1. Tom
    Member
    Posted 4 years ago #

    Hello,

    I can't find an answer to this anywhere. How do I hide the dropdown menu when I rollover a page that has sub pages in my top nav?
    http://www.hellotank.com

    ANy help much appreciated.

    Tom

  2. MichaelH
    Member
    Posted 4 years ago #

    Use the depth=1 argument with the template tag, wp_list_pages().

  3. Tom
    Member
    Posted 4 years ago #

    I'm a relative beginner, I checked the links in your post, where do I put this code?

    Thanks

  4. MichaelH
    Member
    Posted 4 years ago #

    The template tag, wp_list_pages(), is typically used by theme designers to display Pages in a nav bar. With the help of the Template Hierarchy article, determine what Template is displaying your Pages (probably header.php), then look for wp_list_pages and add the depth=1 argument.

    Please, review the wp_list_pages() article.

Topic Closed

This topic has been closed to new replies.

About this Topic