HTML codes working in editor mode, but not on my site.
-
I have several HTML codes that work in editor mode when I apply and preview them, but don’t show up on my site when I save it. And then when I go back into editor, it erases my HTML codes and the blocks are blank. How do I fix this?
-
Hi there!
What’s the address of the site you’re working on and what is the code you’re trying to add?
Please note that some codes are not permitted on free sites: -
This is my website: https://paigevclarke.wordpress.com/
These are the codes I am trying to add:
Maphub:
https://maphub.net/embed/92121?legend=1&panel=1Bannersnack:
<script type=”text/javascript”>
var bannersnack_embed = {“hash”:”bxml75f9z”,”width”:300,”height”:250,”t”:1587936680,”userId”:41085403,”type”:”html5″};
</script>
//cdn.bannersnack.com/iframe/embed.jsNorthwestern University’s Knight Lab:
StoryMap:
https://uploads.knightlab.com/storymapjs/ced320cf0631d061d9aeec2f1f483e5d/tiny-homes-across-america/index.html -
Did you read the link provided by staff-mckluskey above. Javascript can’t be used on a free site. Maphub uses iframes. You’d need to upgrade to a Business plan.
-
Just noting while it’s not the same, you are welcome to embed a Google map on your site in the meantime, if a business plan or self-managed site is out of reach for you.
-
-
Hi @lafernandar, you won’t be able to edit all of the HTML for a site unless you have a Business Plan, but you can edit the HTML within posts and pages and widgets in all plans as long as you’re using allowed code:
http://en.support.wordpress.com/code/ -
Thanks. I’m trying to insert an iframe and a embed from Google Trends. They both display well on editor mode, but when I update the entry they aren’t displayed any more. Are Iframes and embeds not allowed?
-
We don’t allow iframe or JavaScript embeds no, as explained in the support page @supernovia linked to above. If you try to use those types of code they are stripped out from the editor when you save or publish your draft.
Using that type of code is only possible on a Business Plan site with plugins installed.
- The topic ‘HTML codes working in editor mode, but not on my site.’ is closed to new replies.