Custom HTML Block Not showing
-
Hello
I am trying to use a custom html block to add a calculator to my wordpress site.
The calculator shows when i click the HTML preview, however when i preview the entire page it doesnt show the calculator UI, instead it shows the HTML code on the page.
I checked the list of banned HTML tags to see if that was the problem however I don’t see any of the banned or business tags in the code I am trying to use.
Any idea what could be causing this?
I have pasted in the code below.(function() { var qs,j,q,s,d=document, gi=d.getElementById,
ce=d.createElement, gt=d.getElementsByTagName,
id=’calconic_’, b=’https://cdn.calconic.com/static/js/’;
if(!gi.call(d,id)) { j=ce.call(d,’script’); j.id=id; j.type=’text/javascript’; j.async=true;
j.dataset.calconic=true;
j.src=b+’calconic.min.js’; q=gt.call(d,’script’)[0]; q.parentNode.insertBefore(j,q) }
})(); -
Hi, @danquahj
Your site is not hosted here, on WordPress.com, but using the open source WordPress.org software at another hosting provider.For general help with the version of WordPress you’re using, you can ask the WordPress.org community over at https://wordpress.org/support/forums/
The other option: you can ask the support of your hosting.
You can read more about the differences between WordPress.org software and WordPress.com here:
https://wordpress.com/support/com-vs-org/Cheers.
-
I see.
I am slightly confused. I used wordpress.com when creating my site. Here is the URL: jeddynamics.wordpress.com
Is it that the site itself is hosted at wordpress.org?
Thank you for providing those helpful resources.
-
Sorry for my previous response.
Do you see that error on your site https://jeddynamics.wordpress.com/?
If so, the problem is the code you are trying to put in.
See here:
https://wordpress.com/support/code/
- The topic ‘Custom HTML Block Not showing’ is closed to new replies.