How can I use HTML codes in Text/HTML widget?
-
Hello together,
I tried to emb several html codes in html/text widget to put them into my sidebar of my blog. Unfortunately nothing of this works. It always just shows the code in written text in my sidebar. Can you help me pls?
For example i want to add a counter i to my sidebar with the following code:
<div id=’tc_282′>Countup Countup</div><script type=’text/javascript’>(function(){var s = document.createElement(‘script’);s.src = ‘http://www.tickcounter.com/widget/countup/20150101120000am/w411/282/625/000000ffffff3b5998/’;s.async = ‘async’;s.type = ‘text/javascript’;var x = document.getElementById(‘tc_282’);x.insertBefore(s,x.lastChild);}());</script>
Can you help me why the counter is not embed but it only shows the code on my blog :(
I tried to figure it out with the support forum but couldnt find the right answer.
Thank you very much in advance
The blog I need help with is: (visible only to logged in users)
-
Unfortunately, WordPress.com does not allow the use of Javascript in widgets or posts, for security issues. So I’m afraid, you will not be able to add the tickcounter widget to your blog.
You can find more information here:
https://en.support.wordpress.com/code/– Hari.
- The topic ‘How can I use HTML codes in Text/HTML widget?’ is closed to new replies.