WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_pages active class on link not li (1 post)

  1. stunnaboi
    Member
    Posted 4 years ago #

    When the active class is applied to the li, not the link, it requires using the dynamic page class to style the active link. If it was the other way around, I could do something like this:

    .header ol li.tour a.selected {
      background: url(/images/header_nav.jpg);
    }

    versus something like

    .pageid-5 .header ol li.tour a {
      background: url(/images/header_nav_active.jpg);
    }

    q:D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags