URL & Title
By default, AddThis will use the URL and title of the page being viewed. You can however specify a different URL and Page Title for AddThis to use instead.
Optional Attributes
addthis:urlOptional- URL to use if not the current page. This is helpful when you have an AddThis button on multiple articles on the same page.
addthis:titleOptional- This is an alternate title.
addthis:descriptionOptional- This is an alternate description.
HTML Code Example
Button
This example uses Example.com:
<a href="http://webarchive.nationalarchives.gov.uk/20110809101133/http://www.addthis.com/bookmark.php"
class="addthis_button"
addthis:url="http://example.com"
addthis:title="An Example Title"
addthis:description="An Example Description"></a>
Choose Favorites and look at the page title:
Toolbox
This example again uses Example.com, but with an AddThis toolbox:
<div class="addthis_toolbox addthis_default_style "
addthis:url="http://example.com"
addthis:title="An Example Title"
addthis:description="An Example Description">
<a href="http://webarchive.nationalarchives.gov.uk/20110809101133/http://www.addthis.com/bookmark.php?v=250&pubid={YOUR_PROFILE_ID}" class="addthis_button_compact">Share</a>
<span class="addthis_separator">|</span>
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
</div>
Hover over Share, choose "Favorites" and look at the page title:
API Reference
Check out the full client API specification to learn more.