AddShoppers Help Desk

Support Center

How To Open The Sharing Panel With Custom Buttons or Text

Last Updated: Oct 17, 2013 05:33PM EDT

If you want to open our sharing panel with anything else that isn't one of our buttons (a text link, your own sharing buttons, or anything else), you can do so by calling the Social​ method of our Javascript API in one of 3 ways (the network in quotes sets the network that will be shown first when the panel is opened):

AddShoppersWidget.API.Social.app('facebook')
AddShoppersWidget.API.Social.app('twitter')
AddShoppersWidget.API.Social.app('email')

Just choose the network that you want to be shown first (Facebook, Twitter, or Email) and call that function to open the sharing panel.

Here's the code for an example text link that will open up the panel, defaulting to Facebook:

<a href="#" onclick="AddShoppersWidget.API.Social.app('facebook'); return false;">Share and save!</a>

Here's an example for custom Facebook and Twitter buttons:

<a href="#" onclick="AddShoppersWidget.API.Social.app('facebook'); return false;"><img src="URL TO YOUR FACEBOOK BUTTON IMAGE HERE" ></a>​

<a href="#" onclick="AddShoppersWidget.API.Social.app('twitter'); return false;"><img src="URL TO YOUR TWITTER BUTTON IMAGE HERE" ></a>​

Just make sure that you're also including the Social Analytics code or else it won't work!

 

Contact Us

  • Please use the floating chat bubble in the bottom right hand side of your screen to initiate a request.

http://assets0.desk.com/
false
addshoppers
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete