Customized Facebook Button Code

Google To Retire Blogger & Picasa Brands in Google+ Push, Blogger & Picasa Brands ends in 2011, Google+ Push Birth, logo, picture, image, poster, dying, finish, shut down, Google Blogs, Google Photos, Born FB Share
This Facebook tutorial will show you how to add a Facebook share button to every blog post in Blogger, WordPress, Website. You will have an option whether to include a counter, icon, button count or not. The counter will show a live count of how many times a post has been shared -a way to gauge the post popularity.

This is the tutorial:

Note: Save for your Back-Up
A. Go to Dashboard > Design > Edit HTML.
B. Back up your template.
C. Tick the Expand Widget Templates check box on top right of the HTML window.
D. Find the following code in your HTML, this is the code for your post content:

<data:post.body/>
E. Paste the Facebook button code immediately below (after) it:
<!-- Facebook share button Start -->
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div style='float:left;padding:5px 5px 5px 0;'>
<a expr:share_url='data:post.url' href='http://www.facebook.com/sharer.php' name='fb_share' type='botton_count'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script>
</div>
</b:if>
<!-- Facebook share button End -->
F. Configure button
Choose the type of button by replacing the value of type attribute (in line 4) with the corresponding code below.
Add Facebook Share Button With Counter, Customized Facebook Button Code, Twitter
Note: The counter will only show up after the count reaches 3.
G. Button repositioning
The steps above positioned the button on bottom left of each post. You can change the positioning if you like:
   Position it on top of post
   Place the button code before (instead of after) <data:post.body/>.
   Position it on the right
Change the float in line 3 from left to right.
H. Displaying button on static pages
To also display the button in static pages, remove the conditional tag -code line 2 and 6.
I. Preview, you should see the button appear at the end each post.
J. If you like what you see then Save.

Got Something to Add?
0 comments: Post a Comment

Older Post