HMTL code with text widget
-
Hi,
I am wanting to add a blogger followers widget to my sidebar. I am trying to use a html code in the text widget on wordpress and when I save it, it just appears on my page as the code. What am I doing wrong?
I have pasted the code I am using below.
<div class=”g-plus” data-action=”followers” data-height=”300″ data-href=”https://plus.google.com/105236618984114733888″ data-source=”blogger:blog:followers” data-width=”320″>
</div>
<script type=”text/javascript”>
(function() {
window.___gcfg = {‘lang’: ‘en’};
var po = document.createElement(‘script’);
po.type = ‘text/javascript’;
po.async = true;
po.src = ‘https://apis.google.com/js/plusone.js’;
var s = document.getElementsByTagName(‘script’)[0];
s.parentNode.insertBefore(po, s);
})();
</script>Thanks
Becka
The blog I need help with is: (visible only to logged in users)
-
Hi Becka,
Please note that you cannot add Javascript at WordPress.com for security reasons. You can read more about accepted code here:
I’m so sorry I couldn’t be of more help!
-
-
You will have to ask them for that. We wouldn’t be able to create a HTML widget for Blogger followers.
I don’t think that will be possible. But, you can add a WordPress.com Follow Blog Widget:
http://en.support.wordpress.com/widgets/follow-blog-widget/
and a My Community widget:
http://en.support.wordpress.com/widgets/my-community/
Cheers!
- The topic ‘HMTL code with text widget’ is closed to new replies.