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.
ThemeShaper Forums » Thematic
[closed]
Remove 3rd level Subpages from Dropdown Navigation
(6 posts)-
Posted 4 years ago #
-
I added the "depth" attribute to wp_page_menu and that worked.
<?php wp_page_menu('sort_column=menu_order&depth=2') ?>Posted 4 years ago # -
elshaddai, it worked! Only I needed a menu depth of 3, rather than 2. Thanks so much!
Posted 4 years ago # -
elshaddai, I need to do the same thing but only 1 level. Exactly where does that code go?
Thanks
Posted 4 years ago # -
Go to the folder library > extensions > header-extensions.php
// Code line 402
Posted 3 years ago # -
thanks elshaddai,
it worked great
Posted 3 years ago #
Topic Closed
This topic has been closed to new replies.