I am trying to customize my blog posts based on the category. Specifically, I would like to assign a border of a different color to each category. How do I target the category ID in CSS? In the default wordpress blog template, every post had a category class so I would just do something like .category-job-posts, but I don’t see it in the masonry page.
Currently we don’t have such feature. But it can be done with certain tweaks. You can add the category name as class from to the layout you are using and assign the css as per it. To make changes in layouts, please go to layouts and then copy it to wordpress theme. From there you will get new location. You can navigate to it and make changes in layout.php.
Thank you! I got to the point of copying my layout (pinterest inspired) to wordpress theme. I didn’t manage to have the code to add the class to work though (I am a beginner). Any chance you could send it over? Thanks!