Last active
June 9, 2023 13:14
-
-
Save nicomollet/0aacba0b2170ba6e35e8 to your computer and use it in GitHub Desktop.
Addthis: sharing buttons with custom URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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