Hi,
when entereing the following into an element “Code Block” it is deleted during saving.
<svg height=”210″ width=”500″>
<polygon points=”200,10 250,190 160,210″ style=”fill:lime;stroke:purple;stroke-width:1″ />
</svg>
Is Code Block the wrong place to insert such svg elements?
Thank you,
Regards,
Michael
Hey zwachm,
The code block is the right place, your quotes were the wrong format, try this:
<svg height="210" width="500">
<polygon points="200,10 250,190 160,210" style="fill:lime;stroke:purple;stroke-width:1" />
</svg>
Best regards,
Mike
Hi,
thank you for your answer.
I tried it again with your quotes by copy/paste. Still the same.
The Problem is, that the HTML Code is shown in the Code Block until I save the page. Afterwards the code block element is empty again.
The HTML code is not stored within the database table _postmeta during saving/updating the wordpress page.
The element _aviaLayoutBuilderCleanData is empty.
Regards,
Michael
Hi Michael,
I’ve tested the code block with the codes used and it’s saving and showing properly. The code block doesn’t go empty, can you try to disable all plugins and see if this fixes the issue.
Best regards,
Nikko
Hi Nikko,
thank you. This was a great hint.
It turns out, that the plugin “WPML Multilingual CMS” is causing the problem. Sorry for bothering you!
Regards,
Michael
Hi,
No problem :) Glad we could help.
Cheers!
Nikko