Reputation: 383
I am working on a social share button on my site.It was working fine but at some point of time it started to show nothing. I am attaching my script file which has all script in it for sharing . I am very bad in jquery. Link to my staging site .Under Facebook share icon twitter should appear. the below code has share: { twitter: true },
I turned that to false and did not work .The funny part is I replaced twitter to facebook:true inside share: { facebook:true }, and it started appearing and i am able to share on twitter.But thats not a solution.What else could be the error that is happening .Please help
<script>
var twitterSettings = $.extend({}, smShareDefaults, {
share: {
twitter: true
},
buttons: { twitter: {via: 'BarneysNY'}},
click: function(api, options){
track( 'Social Share', 'Twitter', document.title );
api.simulateClick();
api.openPopup('twitter');
}
} );
$('.sm-share.twitter').sharrre(twitterSettings);
</script>
Upvotes: 2
Views: 1081
Reputation: 988
When I go to your staging site, I try this in console
$(".sm-share.twitter")
that results in []
meaning that there is no button attached to the lib.
Can you please specify where the button should be printed by the Sharrre lib ?
Upvotes: 6
Reputation: 1996
Have you checked your network settings ? may be your network administrator have blocked twitter over your network.
you should check you logs in console for any error if any.
Upvotes: 0