Add Facebook Like Button To Your Posts Without A Plugin

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 [sourcecode language=’css’][/sourcecode]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?

[sourcecode language=’plain’]