Skip to content

Instantly share code, notes, and snippets.

@nicomollet
Last active June 9, 2023 13:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save nicomollet/0aacba0b2170ba6e35e8 to your computer and use it in GitHub Desktop.
Save nicomollet/0aacba0b2170ba6e35e8 to your computer and use it in GitHub Desktop.
Addthis: sharing buttons with custom URL
<div class="addthis_sharing_toolbox" data-url="http://customurl.com" data-title="customtitle"></div>
<script type="text/javascript">
var addthis_share = addthis_share || {};
addthis_share = {
passthrough: {
twitter: {
via: 'twitteraccount',
text: 'lorem ipsum'
}
}
};
</script>
<script type="text/javascript">
var addthis_config = addthis_config || {};
addthis_config.data_track_clickback = false;
addthis_config.data_track_addressbar = false;
addthis_config.ui_language = 'fr';
addthis_config.ui_508_compliant = true;
</script>
@nicomollet
Copy link
Author

Custom URL version: can share an url that is different than the current url
1/ Create an Addthis profile
2/ Addthis services must be configured in the Addthis dashboard https://www.addthis.com/dashboard#gallery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment