How To Add The Facebook Like Button To WordPress In One Step Without Plugins

Share And Comment

zkgwplogogalI have been working with WordPress for around 5 years now and I have built several different websites using it. I have always loved WordPress for its simplicity to install and manage but its flexibility to be able to be molded into just about any site that you want to create. As I was launching our latest site, ZoKnows, I was going through all the steps that are now routine to me and then it occured to me that there are tons of folks out there that this stuff isn’t routine for. From their I decided I would start sharing tips and tricks for WordPress that I know with others in an attempt to not only share the info, but open up discussions because there is almost always more than one way to something with WordPress.

In this post I am going to tell you how to add the Facebook like button to your site in one step that should only take you a minute or two and you don’t even need a plugin. One of WordPress’s advantages is that it has plugins that do almost everything, but the problem with that is that we often times look for plugins to do something that even if your not that tech savvy only takesĀ  the ability to follow directions to do. For you WordPress newbies out there, remember plugins are great but should be used in moderation when you can because the code for every plugin you have active has to load every time a page loads which could affect your site’s speed and responsiveness and will ultimately cost you readers.

facebooklike

So anyway, anyone that wants to reach a broad audience these days has got to understand the power of Facebook. Regardless of how you feel about their handling of privacy issues and what not there is no denying that their 500 million users is a big target if you can reach them. To add the Facebook Like Button to any WordPress site is as simple as adding this snippet of code to your single.php file that can be found inside the folder for your active theme. Before you edit this file, back it up somewhere safe so if you mess something up you can revert back. If you are working from an FTP client, make sure you have your .php files set to default open in something like Notepad or Notepad2, if you open it in something else like Wordpad or Word then the file will probably be corrupted.

You can also do this from the Editor option in your WordPress admin panel under Appearance. In either case, go to the single.php file and add this code snippet in the post loop. You can move it around depending on where you want it to appear

Oh yeah, since you can directly paste code like that into a WordPress post we uploaded a .txt file with the code in it for your convenience, right-click and Save As. That’s it folks, once you paste that code in you should be good to go and it only took you a second. Let me know how it works for you.

Share And Comment
Lorenzo Winfrey

Lorenzo Winfrey

Editor-In-Chief at ZoKnowsGaming
I am the Co-Ceo of DLT Digital Media. We are a company that is focused on developing new and innovative web properties in addition to developing WordPress based web sites for others. But before I was all that, I was a gamer.
Lorenzo Winfrey