current_page_item gets applied to subpages as well
-
I would like to use the current_page_item class in my “Pages” tree-view to bold the current page.
My problem is that since the sub-pages are nested within the li element that gets the current_item_class, the style formatting gets applied to child pages as well, which is not what I want.
If the child pages received a current_page_child style, similar to the current_page_parent style that gets applied to the parent page, I would know how to resolve this. However, the children do not seem to have any particular identifiers, so I am at loss as to get rid of the bold-style for the children of the current page, while maintaining it for the current page itself.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘current_page_item gets applied to subpages as well’ is closed to new replies.