Highlight parent but not child pages in sidebar?
-
Can anyone help me with this? I am using WordPress to build a site not primarily for blogging. I would like to highlight the current page on the pages widget in the sidebar. I have inserted
.current_page_item { background: #ccffcc; }
which works but:
1. Ideally I would like to highlight with a text colour rather than background, but color: does not do anything. I assume it clashes with earlier formatting.
2. This code highlights the child pages in the sidebar when the parent pages are selected. Is there some way of using “.current_page_child” to exclude these from the highlighting, or is something more complex required?
Thanks
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Highlight parent but not child pages in sidebar?’ is closed to new replies.