Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Simple Share

    (@davidoffneal)

    Looks like it’s down to your site being loaded over https, and the Pinterest link is http, your server is refusing the connection. I amended the link code in my developer tools and it worked ok – http://ge.tt/5yleKJd1/v/0

    Would you be happy to try and make a small change to the simple-share-buttons-adder.php file for me, to see if my thoughts on a fix would work?

    // pinterest share link
    	$htmlShareButtons = "<a class='ssba_pinterest_share' href='javascript:void((function()%7Bvar%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;http://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());'>";

    To…

    // pinterest share link
    	$htmlShareButtons = "<a class='ssba_pinterest_share' href='javascript:void((function()%7Bvar%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;//assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());'>";

    Tiny change, removing the ‘http:’, hopefully this should do the trick for you.

    Is there any reason you’ve decided to run the whole site on https? Only reason I ask is at a skim I couldn’t see anywhere that sensitive information is entered?

    Thread Starter MechaWear

    (@mechawear)

    I’ll make that change and let you know how it goes.

    Thread Starter MechaWear

    (@mechawear)

    Done and working!

    The site had early Facebook and Stripe functions that required https. At some point I’ll change it…

    Thanks man. Love the plugin.

    Plugin Author Simple Share

    (@davidoffneal)

    Great stuff, thanks for giving it a try and letting me know! I’ll get it included by default from future releases onwards 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pinterest Button Not Functioning’ is closed to new replies.