Support » Requests and Feedback » wp_list_pages active class on link not li

  • 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

  • The topic ‘wp_list_pages active class on link not li’ is closed to new replies.