WordPress.org

Ready to get started?Download WordPress

Forums

Post Author Box
[resolved] Google +1 Code Recognition (2 posts)

  1. humanv3
    Member
    Posted 2 years ago #

    Hi there, I am using your plugin and adding some share buttons to it, but I noticed that it won't accept the Google +1 code. It deletes it upon save. Is it possible to add acceptance for this code? Here it is:

    <g:plusone size="medium"></g:plusone>
    <script type="text/javascript">
      (function() {
        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>

    http://wordpress.org/extend/plugins/post-author-box/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    Sorry for the late reply on this. If you haven't figured it out already, the Post Author Box plugin is stripping out your Javascript tags (and most likely the g:plusone tags as well).

    Fortunately, you can add your own custom tokens to the Post Author Box and have it include the Google+ snippet automatically. Here's a similar example to follow. If you'd like more help with it, please ask.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic