WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Current-Cat in Single Post View (5 posts)

  1. ads1018
    Member
    Posted 4 years ago #

    Hey guys,

    I'm having a problem. I'm using the class 'current-cat' to highlight one of my category links so the viewer knows what category they're viewing after they click it and it works great. However, when I'm in single post view under that same category it's no longer highlighted.

    How do I retain the current-cat styling while I'm in single post view? Any suggestions?

  2. ads1018
    Member
    Posted 4 years ago #

    I've deduced that I'll have to use WordPress fairly new 'body_class' feature. However, I'm not quite sure how to target page templates in the CSS.

  3. ads1018
    Member
    Posted 4 years ago #

    Okay nvrmind I got it down.

  4. Paul Wright
    Member
    Posted 4 years ago #

    I'm interested in this exact thing right now, how did you do it?

    Thanks

  5. Jenst
    Member
    Posted 4 years ago #

    Tell us what you did. If not, this is a useless topic.

Topic Closed

This topic has been closed to new replies.

About this Topic