AddThis Share Functionality

Backoffice
Inside the Website BO, go to SEO > Marketing Tags and copy the Profile ID to "ADDTHIS PROFILE ID"
Code
Create a partial for this, this way if you need to insert it at several places, it will be easy to include it on many other files.
{if="'{{website.website_marketing.add_this}}' != ''"}
<div class="socials-share--addThis">
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{website.website_marketing.add_this}}"></script>
<div class="addthis_inline_share_toolbox"></div>
</div><!-- /.socials-share--addThis -->
{/if}
Then, inside your file, just include your partial:
#$include|partial/social_share$#
Last updated