WordPress.org

Support

Support » How-To and Troubleshooting » How to show ONLY top-level pages in the menu?

How to show ONLY top-level pages in the menu?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Christine Rondeau

    @crondeau

    Volunteer Forum Moderator

    The code should be in your header, but it depends on your theme.

    If your navigation is under your logo, look in the header.php and just insert something like.

    <ul>
    <?php wp_list_pages('depth=1&title_li='); ?>
    </ul>

    And just see what that does. If you have 2 menu bars, then you’ll need to find the other one and just delete. It’s just a matter of treating it like a puzzle. Just take out pieces and see what happens. Of course, when you do this, you should also make a backup.

    No luck, this just caused errors on my page, i have the WPMU Dixi theme. Any other ideas, i’m not that good at the coding side of things.

    Actually, I’m thinking how can i just add the menu straight into the header directly without using the custom menus or putting the pages in order as when i install the BuddyPress Custom Profile Menu my buddypress menu and the normal menu end up the same, it may be a buddypress question, so i will post it there aswell. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to show ONLY top-level pages in the menu?’ is closed to new replies.
Skip to toolbar