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

Derek is the founder of DesignBuddy and a full time graphic designer. He specializes in logo creation and visual branding. Over the past 13 years Derek has helped hundreds of clients grow their business and establish a stronger brand identity. View his portfolio, or get in touch. If you'd like to receive an occasional free newsletter with useful design related content, please subscribe here.

All stories by: Derek Kimball