To define the URL, title, and image (only for certain services,
i.e. LinkedIn and Pinterest) to share, you do it in one of four ways.
For our newest tools, use the
data-url
,
data-title
,
data-description
, and
data-media
parameters, like this:
<div class="addthis_sharing_toolbox" data-url="THE URL"
data-title="THE TITLE" data-description="THE DESCRIPTION"
data-media="THE IMAGE"></div>
If the code you’re using has the addthis_toolbox in it, use the
addthis:url
,
addthis:title
,
addthis:description
and
addthis:media
parameters, like this:
<div class="addthis_toolbox addthis_default_style" addthis:url="THE URL"
addthis:title="THE TITLE" addthis:description="THE DESCRIPTION"
addthis:media="THE IMAGE">
Or you can set it using the
addthis_share
variable, which will change the URL, title, and image shared for all the AddThis tools on the page:
<script type="text/javascript">
var addthis_share = {
url: "THE URL",
title: "THE TITLE",
description: "THE DESCRIPTION",
media: "THE IMAGE"
}
</script>
In any case,
be sure to replace THE URL, THE TITLE, THE
DESCRIPTION, and THE IMAGE with the URL, title, description and image of
the pages to share.
Instructions for WordPress
WordPress provides a way to grab the existing page URL and title,
which is helpful when adding the code to a WordPress template. Here’s
some example code that can be used within a WordPress template:
<div class="addthis_sharing_toolbox" data-url="
0 Komentar
Pesan Formulir Komentar Terima Kasih