Google Badge

  • Unknown's avatar

    Every time I try to add the Google+ badge code to a text widget, when I save, much of the HTML is deleted and the badge does not display properly. Any idea how to fix this?

    The blog I need help with is: (visible only to logged in users)

  • Can you paste the code you are using into a reply here? you can do so by clicking the code button, pasting the code, then clicking the code button again.

    That would be a big help as far as troubleshooting.

  • Unknown's avatar

    <!– Place this tag where you want the widget to render. –>
    <div class=”g-page” data-href=”//plus.google.com/u/0/104109619960546905623″ data-rel=”publisher”></div>

    <!– Place this tag after the last widget tag. –>
    <script type=”text/javascript”>
    (function() {
    var po = document.createElement(‘script’); po.type = ‘text/javascript’; po.async = true;
    po.src = ‘https://apis.google.com/js/platform.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(po, s);
    })();
    </script>

    I type that in, and then pretty much the guts of the HTML is wiped out.

  • I’m sorry, but that embed code will not work because we do not allow certain tags on WordPress.com for security reasons, including JavaScript, Flash, iframe, form, and input tags. These restrictions are in place to prevent any disruptions in service due to potentially malicious code.

    You can read more about this here:

    Code

  • The topic ‘Google Badge’ is closed to new replies.