Hi,
I want to add a custom css class to the blog post element on a page.
I found this thread: https://kriesi.at/support/topic/add-category-as-a-css-class-to-blog-posts-content-element/ but i am using a child theme so i would like to know how to achieve this without editing any core files.
Besides that i also noticed that the categories don’t show up under the post meta although i turned this option on in the theme options under the blog layout. Is that a bug or did i do something wrong?
Thanks in advance!
Hey Rhodo,
Maybe this code is suited better in this case, just add the category as a class.
If you need further assistance please let us know.
Best regards,
Victoria
Hi Victoria,
Thanks for your reply.
Yes that might work but i am using a child theme. How can i make this happen without altering any core files?
Hi XV,
Well, you can copy the file to the child theme and make changes there.
Please have a look at the following thread:
If you need further assistance please let us know.
Best regards,
Victoria
Hi Victoria,
Thanks that worked!
Hi XV,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria