• Resolved Willem-Siebe

    (@siebje)


    Hi,

    I use the share module of Jetpack.
    What I am wondering, how does the Google Share option work even though I have not added the Javascript for this in my page:

    <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>

    When I want to add a Google+ badge on my page I have to insert this Javascript first before the badge show up. The Google share button needs exactly the same javascript, because this share option from you still work I assumed my Google+ badge showed up as well, but that was not the case. Is your javascript loading at a different location? How do I have to understand this?

    Kind regards,

    Willem

    http://wordpress.org/extend/plugins/jetpack/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    Hello,

    I’m not sure I understand your question, but the code you quote is the official code button code from Google. Can you give me a link to your site, please?

    Thread Starter Willem-Siebe

    (@siebje)

    Hi Richard,

    The link is:

    http://www.ruzzleonline.nl.

    What I’m confused of, your Google share option from the sharebar is working. So I was thinking in order for your plugin to have Google share working you have added this code somewhere and it is already loaded on my page (because I use sharemodule of Jetpack).

    However, it seems that this is not loaded because I still have to add the code from first post to let the Google+ work.

    I actually thought I can make use of the javascript from the jetpack share module, because that is already installed on my page. Hope you can explain me.

    Kind regards,

    Willem

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    So I was thinking in order for your plugin to have Google share working you have added this code somewhere and it is already loaded on my page (because I use sharemodule of Jetpack)

    That’s correct. The library is automatically added to your site, but only if you choose the “Official” button type under Settings > Sharing in your dashboard.

    Thread Starter Willem-Siebe

    (@siebje)

    Ok, clear to me, will try it! Thanks Jeremy.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sharebar question’ is closed to new replies.