Search
Other Articles Anywhere questions
Forum

Style Tags

Jonathan Colls's Avatar Jonathan Colls
I would like to be able to style tags that are output as plain text [tags strip="true"].
I can wrap the code in a div and style that but that does not allow me to access the individual tags if there are more than one.

I'd like to be able to do something like set a class, e.g [tags strip="true" class="my-own-class" separator=" - "] and then for the output to be something like the below.
<div class="tags">
<span class="my-own-class">Tag1</span>
<span class="separator"> - </span>
<span class="my-own-class">Tag2</span>
</div>

Is this or something similar possible?

Thanks
Peter van Westen's Avatar Peter van Westen ADMIN
That is not possible like that.
However, you can use a custom layout to output the HTML as you want.
[tags layout="path.to.your.layout"]
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription