Julienh / Sharrre

Make your sharing widget! Sharrre is a jQuery plugin that allows you to create nice widgets sharing for Facebook, Twitter, Google Plus (with PHP script) and more.
sharrre.com
MIT License
1.04k stars 411 forks source link

Pinterest button not working with Sharrre #217

Open jmagnone opened 10 years ago

jmagnone commented 10 years ago

I am not able to make Pinterest button work. Here is my code:

jQuery('#template-share').sharrre({
    share: {
        googlePlus: true,
            facebook: true,
        pinterest: true,
        linkedin: true,
            twitter: true,
    },
    buttons: {
    googlePlus: {size: 'standard', annotation:''},
    facebook: {layout: 'standard'},
    twitter: {count: 'horizontal', via: '<mytwitteraccount>'},
    linkedin: {
      counter: ''
    },
    pinterest: {
      layout: 'horizontal',
      //media: jQuery('#slider img:first').attr('src'),
      //description: "",
    }
    },
    enableTracking: true,
    enableHover: false,
    enableCounter: false,
});

Do you have any idea why it is not working? All other social buttons are working fine, but I can't get Pinterest to work. I am using Chrome.

ra100 commented 10 years ago

I spent several hours solving this, but still, no result. Button seems generated as it should be, but after click, there is no event, no popup. EDIT: if I take the pinit element out of sharrre DOM element, it works. What is preventing the click on pin button?

ra100 commented 10 years ago

I commented theese lines:

//    click event
//    $(this.element).click(function () {
//      self.options.click(self, self.options);
//      return false;
//    });

sorry, I can't do pull request, I have some modifications in code. And this is probably just not very good quickfix.

PeterBowater commented 8 years ago

Thank you! this fixed an issue I was having....