[resolved] Active state on anchor (3 posts)

  1. dgraydesign
    Posted 6 years ago #

    I have an active class on my navigation that requires that the text color change. Since WordPress applies the current_page_item class to the li, this won't work. Is there a way to set up the navigation with a "current" class on the anchor tag instead of the li?

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    Something like:

    .current_page_item a {color:#f00;}

    should work fine.

  3. dgraydesign
    Posted 6 years ago #

    Yes, thanks. I was making it so much harder than it was.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.