How To Add Social Media Buttons To WordPress (Without a Plugin)

Add Share Buttons To WordPress Without a Plugin

WordPress plugins can be great, they allow for easy one click installs of a designers add-on to help improve your website. Need a contact form? Boom! Two clicks and you got one. What about a gallery or content slider or even a twitter widget? No problem, you can find those too. WordPress plugins come in the thousands these days and in my opinion are one of the main reasons why people love WordPress so much.

Social-Media-Buttons-To-WordPress-Without-a-PluginYet, the underlying danger of installing a plugin without researching it first is not always known by most people. The recent WordPress attack on hundreds of thousands of websites was compromised due to a lack of security from a poorly designed plugin. In short, a WordPress plugin can be a open window to your website.

There are other downsides to being plugin heavy with WordPress, experts have found that the more plugins you have running the slower your website will run. I talked about some of the ways to help improve loading time with your WordPress site in a previous article. One of the top suggestions on my list was uninstalling plugins that you weren’t using. One of the most common WordPress Plugins to add is one that puts Social media buttons onto your WordPress theme. There are hundreds of these types of plugins, all of which are slow, heavy with code and offer little in the area of styling. The 13 minute video I have create (above) will show you how to avoid adding social media buttons without adding a plugin.

Don’t Worry This is Beginner Friendly

As you can see from the video, I have suggested adding a free service like ShareThis.com. Of course the proper way of adding social buttons isn’t taking a shortcut with Share This, yet I understand that time is money and that getting people to simply meet me in the middle by using this method and avoid using a plugin is a lot easier than an a complicated process with many steps. As I explained in the video, I do recommend using ShareThis for all social media share buttons except twitter.

You can find the Twitter buttons here

Below is the code I used in the video.

[code]

<div style=”height:35px;”>
<span class=’st_sharethis_hcount’ displayText=’ShareThis’></span>

<span class=’st_facebook_hcount’ displayText=’Facebook’></span>

<div style=”float: right;margin-right: 144px;padding-top: 3px;”>
**Your Twitter Button Code Here**
</div>

</div>

[/code]

I hope you enjoyed this quick article and video and I hope this method created some creative ideas for you to use with your social sharing buttons.

Share This Article!

About author View all posts

Mike Patch

Optimize Dude was started with the intention of creating a fun down to earth practical blog to help WordPress users with improving their website. Mike Patch is a long time blogger, SEO and Web Designer.