Adding a Facebook "Like" button to your entries

| No Comments
With a Facebook Like Button, your readers can post on their wall that they like the current entry in context. To test this functionality, I liked one of my entries on my blog "Test Blog Test":
uthink-facebook.jpg

To add a "Like" button to the entry summaries on your blog's home page, follow these steps:


  1. Log in to UThink and select your blog.
  2. Go to Design > Templates
  3. If you created your blog since June 2009, look under Template Modules, click Entry Summary. If you don't see this, let me know, and I can find a solution for you.
  4. Finding the right spot in the code to add the button is tricky. You might see these four lines of code:
<mt:Unless name="hide_counts" eq="1">           
<mt:IfCommentsActive><span class="separator">|</span> <a href="<$mt:EntryPermalink$>#comments"><$mt:EntryCommentCount singular="1 Comment" plural="# Comments" none="No Comments"$></a></mt:IfCommentsActive>           
<mt:IfPingsActive><span class="separator">|</span> <a href="<$mt:EntryPermalink$>#trackbacks"><$mt:EntryTrackbackCount singular="1 TrackBack" plural="# TrackBacks" none="No TrackBacks"$></a></mt:IfPingsActive>
</mt:Unless>

Leave this code intact, but follow it with this:

| <iframe src="http://www.facebook.com/plugins/like.php?href=<$mt:EntryLink$>&amp;layout=button_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>

5. Click Save.

5. Now repeat steps 2-4, except that in step 3, you're looking for the Archive Template called "Entry" rather than the Template Module called "Entry Summary". This will place the "Like" button on individual entry pages, not just your home page.

6. Click Save and re-publish your site.



I'd be happy to do this for anyone upon request.

Leave a comment

About this Entry

This page contains a single entry by Charlie Heinz published on January 6, 2011 10:09 AM.

Create a Social Media Widget was the previous entry in this blog.

Ping! is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.