-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple share buttons with different urls #251
Comments
I am having the same question |
I've combined sharing buttons this with infinite scroll on one of my Shopify projects. $('.wrapper').infinitescroll({
navSelector: ".nextNav",
nextSelector: "a.next",
itemSelector: ".article",
loading: {
finishedMsg: "<em>You've reached the end of the Internet.</em>",
speed: 'fast',
}
}, function(infiniteSharingButtons) {
new Share(".share-button", {
ui: {
flyout: "bottom left",
button_font: false,
button_text: 'Share'
},
networks: {
facebook: {
before: function(element) {
this.url = element.getAttribute("data-url");
},
load_sdk: false
}
}
});
}); and in html it looks like this: <div class="share-button" data-url="http://www.yourwebsite.com/article1234"></div> |
Hi, we also need this, it seems that @aproxis solution does not work as expected in our case because :
Is their any workaround do display several share buttons on the same page ? |
+1 |
+1, it would be extremely useful |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is any way to have multiple sharebuttons in a page with different urls? (use case: a page with multiple articles and you want to provide a share buttons for every single article)
It would be nice if it would be possible to add a data attribute to the tag that overrides the default url defined in the configuration.
The text was updated successfully, but these errors were encountered: