ThemeShaper Forums » Thematic


Remove 3rd level Subpages from Dropdown Navigation

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

    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 12 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 12 years ago #
  3. aaronpc

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

    Posted 12 years ago #
  4. budgrif

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


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

    // Code line 402

    Posted 11 years ago #
  6. philbenoit

    thanks elshaddai,

    it worked great

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.