Add css class to plain text field in pods template ?
-
Hi everyone,
Plain text field outputs <p>…</p> html elements on the front office. How can I add a css class to this <p> element ?
I’ve added a css class in the field’s Advanced options but I still get <p> instead of <p class=””>.
In Pods’s template, I tried <p class=”myclass”>{@myfield}</p> but it doesn’t work.
For now, I wrap {@mytextfield} with a <div class=”myclass”> so it outputs
<div class="myclass">
<p>My text</p>
</div>Is there a better solution ?
Thanks for your help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add css class to plain text field in pods template ?’ is closed to new replies.