How To Add Social Media Links To WordPress Posts

585 396 Derek Kimball

add social media links to wordpress posts

There are a a lot of social media sharing plugins for wordpress users, but all of the ones I tried were way too bloated or just plain ugly. Below is a simple and minimalist approach that won’t slow your site to a crawl. See the bottom of this article to see how your social media share links will look.

Step 1:

Download the “bottom of every post” plugin and install. This plugin allows you to display anything you want at the end of your blog articles. In this case we will be simply adding a couple lines of code that will display your social media links. The plugin is light weight and free of unnecessary bloat.

Step 2:

Once installed, go to Plugins > Editor. In the top right of the page you will see “Select plugin to edit”. Choose the “bottom of every post” plugin and then select the “txt” file (the one that doesn’t say “readme”).

Step 3:

Copy and paste the following code into the text document just mentioned, and modify the links to your liking:

<hr />

<a href=””>Share via Facebook</a> | <a href=””>Share via Twitter</a> | <a href=”;url=http%3A%2F%2F%20”>Share via Google+</a>

<hr />


For whatever reason plugins intended strictly for blog posts end up appearing in my portfolio pages as well. If you run into the same issue and don’t want the social media links appearing in your portfolio/gallery pages, do the following:

Access the plugin’s php file titled “bottom_of_every_post.php”. Around line 17 you will need to modify the “if” functions to something like this:

php code

The cool thing about the “bottom of every post plugin” is that you can now add what ever code you’d like to the “txt” file you placed your code into (about author info, etc). If you end up using this approach, let me know how it worked for you. I’ll help where I can, however coding is not my specialty.


Derek Kimball

Thanks for reading my blog. If you're in need of graphic design services, you can hire me here. I specialize in logo creation and branding design. If you enjoy the articles on this site, please subscribe to my free newsletter where I share design resources, industry news, and tips from my experience being a freelancer. I promise to never bombard your inbox or share your email. Thanks!

All stories by: Derek Kimball