Custom Block and Source Code

Hi! Need help.

I’m encountering a very weird problem with Custom Blocks and it’s very frustrating.
I simply want to show social buttons in the block. However, as soon as I enter Ok after entering the source code. The tag and everything inside gets omitted especially the tag. Tried different ways already but the code really gets omitted.

This is what it looks like after.

Your a tag and i tag is effectively empty of any content. Is that intentional? I wonder if TinyMCE strips those “empty” elements.

Yes. :slight_smile: It should be working without any content. But you’re right, TinyMCE strips it apparently. I made it work by inserting comments.


And the icons are displaying now.

Thanks @ctgraham

Hi!
I am encountering a similar error. I try to put the html code of a widget but when I save it makes it incomplete and the widget doesn’t work. Might you help me?

The code is:

<script src="https://doaj.org/static/widget/simple_search.js" type="text/javascript"></script>
<div id="doaj-simple-search-widget"></div>

Thanks!