Add atribut to page

Hello,

I have a website and I want to add (data midnight:“white”) to one of the sections of a page.

Add div

Is it possible to achieve that there would be (div class=“e1188-1 x-section” data-midnight=“white”) instead of (div class=“e1188-1 x-section”) ?

I believe it can be done but am not sure…
Thanks in advance.

Hello Luka,

You can absolutely easily add custom data attributes to sections by click on the section’s customize option and setting it under Custom Attributes:

then the result will be:

Please make sure you have the Advanced Mode setting enabled on your site so that you’ll see the custom attribution option.

Please click on the cog icon on the settings area then enable the Advanced Mode option.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.