Site logo

Archived topic

HTML-class for post-term-item

1 reply · Started by camucamu on December 1, 2022

Viewing posts 1–2 of 2

Hi, couldn`t figure out how to add html-class to post-term-item, if is a child-category:

I have the dynamic Text-Type "List of Terms", which outputs all categories, a post is associated with.
For CSS styling, it would be helpful to have a html-class with "parent-class" :

term-health: = main-category
term-body: sub-category

Current:

<span class="post-term-item term-health">.. </span>
<span class="post-term-item term-body">.. </span>

Improvement:

<span class="post-term-item term-health"> .. </span>
<span class="post-term-item child_term-health term-body"> .. </span>

Thx for your suggestions - Max

Hi there,

there is no filter available in GenerateBlocks to change that. And i am not sure how easy that would be to do.
Do you want to raise it as a feature request ?

This archived topic is closed to new replies.