X theme seems to cut off my custom code

Hi,

I’ve added some custom code to html in text module. It looks like this:
<a data-tolb-id="tolb-29672961">test</a>
but after logging out or showing the page in other browser i get this:
<a>test</a>

How to prevent from erasing my code? Or how to add it by JS?

X version: 5.2.5
Site: http://starsocks.eu/en/
Example is in this text: We give you a raw animated model ( ) to establish what will happen during animation

Regards,
Dawid

Hi There,

I’ve just tested and it’s working fine on my end:

Don’t forget to switch to HTML tab instead:

If it still doesn’t work, please try testing a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Let us know how it goes!

Now I have only Cornerstone and Polylang activated.
Of course it is made in HTML. Sadly, still the same.

This code is what I’m trying to add (and couple other similar to this):

<h4 style="color:#fff">Animation</h4>
<p>
We give you 
<a id="tolb-29672961" class="tg-media-button tg-element-1" data-tolb-src="pGOeo54QjXI" data-tolb-type="youtube" data-tolb-alt="">
a raw animated model ( <i class="tg-icon-play"></i> )
</a> to establish what will happen during animation.
</p>

It always cuts off all tags like “data-tolb-src” or “data-tolb-type”. But only while logged out. While editing all seems good.

Hey @Starsocks,

When using HTML, you need to use the Classic Raw Content element. The Text element will strip out non-standard attributes.

Thanks.

Hi @christian_y,

Yeah, that’s it. Thanks for help both of you :slight_smile:

Regards,
Dawid

Glad to hear we managed to help!

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