Dynamic menu highlighting, wp_list_pages and sub-pages
-
Using the
current_page_item
class that is generated by the wp_list_pages tag when viewing a Page I could apply the “knowledge” in the Dynamic highlighting Codex article easily.
However, if the Page has a child Page (aka sub-page) it gets highlighted, too – because it is listed in as a nested list inside the “current_page_item” list item.
Any workaround not to get the children highlighted?
TIA
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Dynamic menu highlighting, wp_list_pages and sub-pages’ is closed to new replies.