The Easter Sale is on! Join now or renew your subscription with a 25% OFF! Read More

Support Forum

Add tag class in div

Hi all,

This is a question of which I know it is far beyond the IT support, so I totally understand if there will be paid no attention to.
The reason I ask it, is because I hope that this is something that could easily be done, or maybe not but then I know I can stop trying (took me hours already :D).

It's about the News Pro Joomla particle. When I inspect the page, I see that the category is added to the div, by news-pro-joomla.html.twig, line 173:
g-cat-{{ cat.alias|lower }}
.

What I would like to have is that other classes are added, for the tags. Example: my articles are movies. Article 'Movie 1' has two tags: 'thriller' and 'language German'. So my wish is that, besides the g-cat-.. also g-tag-thriller and g-tag-language-german are added as classes in the div. In that way I could style them.

I already added: g-tag-{{ tag.alias|lower }}, which I think is quite naive :p In the element I see that g-tag- is added, but the tags are not fetched.

Is this something I could achieve, or is this very difficult?

With kind regards!
Stefan
Responses (2)
Sorry, but you are not allowed to view the replies here.
Your Reply

Become an insider | Subscribe to our Newsletter
Subscribe to our mailing list and stay up-to-date with all our awesome releases, latest updates and amazing discount offers!