Page 1 of 1

Publishing problem adding HTML code to text object

Posted: Tue Jan 03, 2023 1:49 pm
by Marcvanoosten
Hi,

I added some HTML code to a text object. Added it in 'After Tag'. Checking it in the 'Generated HTML' it looks oke.

Now the problem..
After Publishing when I check the Published HTML file, the added HTML code does not appear after the tag but before the last </div> of the text object. What am I doing wrong?

Marc

Re: Publishing problem adding HTML code to text object

Posted: Tue Jan 03, 2023 2:07 pm
by Pablo
You are not doing anything wrong.
The generate code depends on the properties of the text object. For example, in some cases a <div> is added to be able control the size and position of the element.
Also, it depends on the context of the text and/or whether it is responsive etc.
There many different combinations so you cannot always predict what the final code will look like.
So, adding the code this way may not be the best option.