I’d like to be able to style the blog posts on an archive page based on their category. So I need to add the blog post category as a class to the article element when using Grid Layout of the Blog Posts editor.
I’ve copied over the shortcode php of postslider to my child theme successfully, and have noticed that I need to edit $post_class, I just can’t get it to display the category(s) of the blog post. Thanks!
Couldn’t figure out how to delete the post but figured it out using: https://kriesi.at/support/topic/dynamically-add-the-category-name-to-grid-layout-source-code/
Hi leadmagz,
So did you get it working for you or do you still need our help?
Best regards,
Victoria