How to apply classes to elements ?

Created on 23 March 2023, over 1 year ago
Updated 5 September 2024, 2 months ago

Hello

I would to use this module to add classes to my block elements but I can't because of the simple twig variable:
{{ content }}

So how can I replace it by the HTML content of my block ?
Actually it's something like this:

<ul>
<li></li>
<li></li>
<li></li>
</ul>

and I need this:

<ul class='grix'>
<li class="col-lg3"></li>
<li class="col-lg3"></li>
<li class="col-lg3"></li>
<li class="col-lg3"></li>
</ul>

Thanks for help

πŸ’¬ Support request
Status

Closed: works as designed

Version

1.5

Component

Code

Created by

πŸ‡«πŸ‡·France aiphes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024