How to Add Facebook’s “Like” Button to Your Art Blog

Published on May 7th 2010

I recently experimented with adding Facebook’s “Like” button on my Wordpress blog. With that up and running, I tested the same idea in Google Blogger, since most of the art blogs I read run on that platform.

As it turns out, adding this feature at the end of your posts in Blogger is much easier than Wordpress—there’s just a single edit to be done!

Customizing the Like buttonHere’s how to add the “Like” button.

1. Go to the Facebook developers page (http://developer.facebook.com) to customize your Like button. You’ll have several options to choose from.

The button can be displayed as “Like” or “Recommend” whichever you prefer. I went with “Like” itself, since it is so widely used in the Facebook world.

2. In the URL to Like section, enter “post.url”—this is how the unique permalink of each blog post is represented within the Blogger template.

(By default, this may already be set to “http://developer.facebook.com” and must be edited to suit your blog.)

3. After customizing your button, click the “Get Code” button to retrieve the code that you will insert into your Blogger template.

4. On the next page, select the code in the top, underneath the word “iframe.”

Like button code to insert

(Editor’s Note: If you’re using the updated version of blogger, you may need to use an alternate section of code found here.)

5. Once you have the code, go to Layout->Edit HTML in your Blogger dashboard. Select the checkbox titled “Expand widget templates”.

6. Take a backup of the existing template before proceeding, by clicking on the link “Download full template”.

7. Search for the line “<div class=’post-header-line-1′>” in your template.
Insert the copied code anywhere between <div class=’post-header-line-1′> and </div> which will be farther down.

Insert into blogger template

Preview the template before saving the changes, to see if all looks as desired.

While customizing the button in Facebook, only the width is specified and not the height. I have mine set to 30px and it looks great. After previewing, save the template, and you’re done!

Go ahead and introduce the “Like” button in your posts. Now, not only the people you know on Facebook, but anyone who visits your blog will be able to share that they liked it with their entire network of friends.

To learn more about Nithya, please visit her art blog, A Splash of Color.

Did you like this article?
Please stumble it so others will find it or check out the related posts below.
Finally, my "big project" is finished! It’s been a crazy day with a lot going on, but foliotwist.com is finally live and online! Since I’ve kept it a complete secret up until launch, here’s a quick (mostly visual) overview of what it does. . .read more
Have you ever seen an art blog on the very popular Blogspot.com that uses more space than the standard template they give you? Many times, it's because the artist has added a third column. I managed to update my blog recently to a three column site, and here's how I did it: (NOTE: The followin. . . read more
Although I love the idea of composing my posts directly in Blogger’s interface and, with a single click, having my photographs appear and my links become linked, there's something to be said about knowing how to use a little HTML code in order to enhance a blog post. When you use HTML code in . . . read more
Artists who choose to use a free blogging platform for their art blogs often pick Blogger.com, and for good reason: it takes less than 60 minutes to set up your blog, provided you've already designed your banner and written your first post. Below are the quick and simple steps for setting up a. . . read more
It may not seem like it at first, but knowing who visits your art blog and what they do once they're on your blog can be extremely beneficial. A good hit counter will not only tell you how many visitors you have, but where they go once they get to your art blog—for example, do they browse arou. . . read more
Stay current.
Subscribe to EmptyEasel's free weekly newsletter for artists. Sign up today!
EE Writers
Lisa Orgler Alyice Edrich Luke Montgomery Clemens Greis Doris Glovier Rose Welty

Want to be a writer for EmptyEasel? Paid positions are available, and the perks are great. :) Contact us to apply