ThemeShaper Forums » Thematic

[closed]

Remove 3rd level Subpages from Dropdown Navigation

(6 posts)
  • Started 10 years ago by aaronpc
  • Latest reply from philbenoit
  • This topic is resolved
  1. aaronpc
    Member

    Hi there. I want to remove 3rd level subpage (great grandchildren) links from the dropdown menu, while retaining 1st (children) and 2nd level (grandchildren) subpage links. What would be the best way to do this? Any help would be greatly appreciated.

    Posted 10 years ago #
  2. I added the "depth" attribute to wp_page_menu and that worked.

    <?php wp_page_menu('sort_column=menu_order&depth=2') ?>

    Posted 10 years ago #
  3. aaronpc
    Member

    elshaddai, it worked! Only I needed a menu depth of 3, rather than 2. Thanks so much!

    Posted 10 years ago #
  4. budgrif
    Member

    elshaddai, I need to do the same thing but only 1 level. Exactly where does that code go?

    Thanks

    Posted 10 years ago #
  5. Go to the folder library > extensions > header-extensions.php

    // Code line 402

    Posted 10 years ago #
  6. philbenoit
    Member

    thanks elshaddai,

    it worked great

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.