Highlight child category and parent category, on post page

Discussion in 'WordPress' started by zep, Apr 18, 2013.

  1. #1
    Hi.

    I have succeeded to highlight child and parent categories, in categories page.

    Here you can check it:

    WordPress Website

    The problem is, it seems that WordPress doesn´t put the 'current-cat', and 'current-cat-parent' classes, on the post page (I believe it is 'single.php' file).

    Does anybody know a way to generate those classes in the categories list, in the post page?
     
    zep, Apr 18, 2013 IP
  2. Sayedtaqui

    Sayedtaqui Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #2
    Right. It doesn't, and I had the same problem once when I had to style the categories children and their children as well. You can do it all with CSS selectors, its not that difficult. Check out how I did it. http://degitech.co.uk/blogs/
     
    Sayedtaqui, Apr 19, 2013 IP