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