• Resolved imthatguydavid

    (@imthatguydavid)


    Hi, I was wondering if there was a way to separate the category divs from each other.

    What I’m trying to say is, I want my cat meta to show, however, depending on which category the post is, I want the box to be a different color. For example, I want all news to be red, all press to be blue, etc.

    To make things clearer, here is an example of a site that does exactly what I’m saying.
    http://apanational.org/

    All ‘inspiration’ post have a purple box on the top left, an orange box for news, etc.

    So my question is, how can I css it so that it knows what type of category meta is showing? It also does not have to be CSS.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter imthatguydavid

    (@imthatguydavid)

    actually, nevermind. I think I figured it out. It seems like each item has a class with the category name within it. so the css class would be
    .item.news .categories{ whatever css };

    I hope this helps out anyone thinking of doing the same thing.

    One other question, and I might just create a new ticket since it is not the original question, but if a post has two categories, is it possible to have only one category show?

    Plugin Author PickPlugins

    (@pickplugins)

    Great to know you found it.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘specific class for category div’ is closed to new replies.