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=”http://www.facebook.com/share.php?u=http://bit.ly/vOKpgC”>Share via Facebook</a> | <a href=”http://twitter.com/home?status=http://designbuddy.com/11-gifts-for-graphic-designers”>Share via Twitter</a> | <a href=”https://plusone.google.com/_/+1/confirm?hl=en&amp;url=http%3A%2F%2F%20http://bit.ly/vOKpgC”>Share via Google+</a>

<hr />

Summary:

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.

AUTHOR

Derek Kimball

Thanks for reading my blog. I'm a graphic designer who specializes in logo design and brand identity. If you'd like to receive periodic updates to useful design resources and writings, subscribe to the newsletter.

All stories by: Derek Kimball

Leave a Reply

Your email address will not be published.