How do I control the appearance of item in grid/list by category or label?

I need to highlight an action in a grid or list that is categorized. Html, however, does not contain a class according to which this could be done. How to solve?

[article class=" mec-event-article mec-clear " style=“background: #a3b745” itemscope=""] manual setting through background color is not a good idea

Hi @northhub,

Thanks for reaching out.
It is not very clear what exactly you are trying to achieve here. Can you please elaborate a bit more along with any example or any specific URL which helps us to understand?

Thanks

Like here (news), I need to change the look of the event according to the category. The class in the parent

of the element is ideal.

Hi @northhub,

There is no option to set the class to each event based on the category through the shortcode. If the output of the shortcode adds any class to each event be the default, then it is possible to add any custom CSS code. It seems that it would require some customization and that is beyond the scope of Theme Support. I would suggest you hire a developer who can assist you to do the customization or you can avail of our newly launched service called One, where we answer the questions beyond normal theme support.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.