WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Active state on anchor (3 posts)

  1. dgraydesign
    Member
    Posted 4 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 4 years ago #

    Something like:

    .current_page_item a {color:#f00;}

    should work fine.

  3. dgraydesign
    Member
    Posted 4 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

Tags

No tags yet.