July 20th, 2009 | Categories: Wordpress | Tags: , , , , ,

My friend asked to me ‘How i add a Facebook Button to My Joomla site?’. I gave him this code. I think this code appliable for WordPress  and change code for WordPress, because this is only link, i copied from Facebook :) You have to make a little change on single.php. Lets begin…

Just Copy this code in the WordPress Loop;

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

That’s All! Have a nice day!


No comments yet.