WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. defprog
    Member
    Posted 6 months 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.

    http://wordpress.org/plugins/hierarchical-pages/

  2. wlindley
    Member
    Plugin Author

    Posted 6 months 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
    Member
    Posted 6 months ago #

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

    li.current_page_item a{
    font-weight: bold;
    }

Reply

You must log in to post.

About this Plugin

About this Topic

Tags