Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
wrapclass in images
I cannot see a wrapclass attribute in the images tag, nor does it work if I add it.
<txp:images category="my_category" wraptag="ul" wrapclass="my_ul_class" break="li" class="my_li_class">
<txp:image loading="lazy" />
</txp:images>
Although there are other ways to achieve this, am I the only one who thinks that it should be included in our armoury?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: wrapclass in images
Hi Yiannis,
It’s the other way around: class is already the wrapclass and there is a breakclass attribute for the break element if appropriate:
<txp:images wraptag="ul" class="my_ul_class"
break="li" breakclass="my_li_class">
<txp:image loading="lazy" />
</txp:images>
TXP Builders – finely-crafted code, design and txp
Offline
Pages: 1