Personally, I prefer to keep my plugins at the bare minimum. And by that I mean less than ten plugins. I wish I could narrow my installed plugins down to five, but I’m not much of a PHP person yet to achieve that. In my quest to eliminate unnecessary plugins, I stumbled upon this Facebook like code from the FB site itself, negating the need for a Facebook like plugin.

Normally, the code below is placed inside the single.php file of your theme folder, under
<?php the_title(); ?>
Since I am using Headway, I took the code and pasted it on Easy Hooks, under Before Featured/Single Post Content. This puts it under the post title and just before the post content. So what’s the code?
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false& width=580&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:580px; height:25px;"> </iframe>
You should be seeing a Facebook like button on all your posts after you hit Save.

































{ 3 comments… read them below or add one }
another DIY, and I know this is a great help to everyone who doesn’t know anything about codes, htmls and the likes. thanks kaye!
how come no matter how hard I try, i still cant relate to this kinda stuff
) or shouls I say my mind is close na tlga
thanks for the info, I have to try this soon!