Hierarchical Pages Widget
[resolved] Make current page link bold/highlighted (3 posts)

  1. defprog
    Posted 1 year ago #

    This is a great plugin. The one thing I cannot figure out how to do - even after reading the documentation - is how to style the widget so that the current page the user is on appears bold. The list of pages is fine, but there is no indication where the user is at any time relation to the other links. I have had no luck figuring out current_page_item.

    This other support thread is most similar to what I am looking for, but none of the CSS posted there works for me at all: http://wordpress.org/support/topic/css-styling-sub-menu-cant-work-out-3rd-level-pcc-styling?replies=1. I don't need multilevel highlighting, just bold current page.


  2. wlindley
    Plugin Author

    Posted 1 year ago #

    Set a style for a <li> element with class, current_page_item . Something like this, perhaps:

    .current_page_item > a {
        font-weight: bold;
  3. defprog
    Posted 1 year ago #

    Thank you. This is what I used and it's working:

    li.current_page_item a{
    font-weight: bold;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Hierarchical Pages Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic