Tuesday, July 6, 2010

TutZone- Tutorials, Design news and Inspiration

TutZone- Tutorials, Design news and Inspiration

Link to TutZone

How to Add a Facebook Share link to your WordPress blog

Posted: 06 Jul 2010 05:00 AM PDT


Facebook being 2nd top most visited site after Google, can bring some massive traffic to your blog/site if used correctly. You should always try and engage users to share your article on their favorite sites as much as possible, like Twitter, Facebook, etc. This simple tutorial will help you add a Facebook Simple Share link to your WordPress blog, which not only loads fast but also let your users share your articles easily on their profiles.

01. Login to wordpress administration panel and go to Appearance => Editor
editor

02. Once there, click on single.php file
single.php

and add below code (within the loop), where you want your Facebook Share link to appear:

<a target="_blank" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>">Share on Facebook</a>


This concludes this simple and useful tutorial. Hope you like it.

No comments:

Post a Comment