How to Enable Facebook Like Button on a Web Page Using AddThis

AddThis has released their support  for the Facebook Like button within the AddThis sharing platform. To enable this feature into your website just copy and paste the two code sections below into your HTML page.

Addthis Facebook like button

Addthis Facebook like button

HTML

Put the code below to where you like the button to appear on your page. For WordPress user, put the code on single.php and page.php

<div class="addthis_toolbox addthis_default_style">
    <a href="http://addthis.com/bookmark.php?v=250" class="addthis_button_compact">Share</a>
    <span class="addthis_separator"> </span>
    <a class="addthis_button_facebook"></a>
    <a class="addthis_button_twitter"></a>
    <a class="addthis_button_googlebuzz"></a>
    <a class="addthis_button_email"></a>
    <span class="addthis_separator"> </span>
    <a class="addthis_button_facebook_like"></a>
</div>

Java Script

Put the code below before the closing </body> tag. For WordPress user, put the code on footer.php file.

<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=YOUR-ACCOUNT-ID"></script>

YOUR-ACCOUNT-ID is your account id on Addthis, use #username=YOUR-ACCOUNT-ID if  you want to collect analytcs data about your account or just remove it if you don’t want analityc data.

View demo

facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

Comments

  1. Mephi says

    Hey thanks for this but is this legal to use? we need this to get fans for our organ pledging page on facebook. thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *