Want people to share your content with others? Of course! We all do. And not just our posts, but our pages as well.
So if you add sharers to your blog, add them not only to the blog posts, but also to your blog pages. Why? Because some people want to share both your posts and pages.
For example, I will eventually open up this blog for Guest Bloggers. I will probably put the information for how to do that will be on a blog page. If you are a Guest Blogger, and find the information on that page, and know that some of your Twitter followers might also want to be a Guest Blogger, then you should be able to share the content from that page quickly and easily with your Twitter followers.
So put sharers on your pages, not just on blog posts.
Most WordPress plugins will have options for where you want your sharers to go. Standard Theme already has a great built in Sharebar, but for some reason, the designers decided not to include the sharebar on blog pages.
But that’s no problem. It’s a quick and easy fix.
Before Adding the Sharebar
Yesterday we created our first blog page. Here is a screenshot of what it looks like:
See? No Sharebar! Let’s fix that in two simple steps.
Get code from single.php
To add the sharebar to our page, we first need to get the little code snipped. I could type it out for you here, but I want to show you where you can get it from. On this blog, I not only tell you what to do, but also how to do it.
So, from your Dashboard, select Appearance, and choose Editor. From the list of files on the right, find the one called “single.php.” Open it.
See the highlighted bit of code there? We are going to copy that one line. You should probably get it for yourself, but here it is anyway:
You should not only get the code, but also note where it is found within the code. This will help us place it properly in our page template.
Add code to page.php
After you copy the code, find and open the file from the list on the right called “page.php”
You are going to insert the line of code in exactly the same place where it was found on single.php. Where was that? Well, look at the screenshot above. It was right before the line of code calling for the Standard Theme Breadcrumbs.
So let’s insert it there on page.php as well.
After you have inserted the code, make sure you Update the File with the little blue button.
Check your Handiwork
It is always good after you edit your code to go make sure you entered it properly. A missed comma or semi-colon can be disastrous!
It looks like we did it properly! Yay! (Notice that I took this screenshot before I added the Google +1 and Stumble Upon share buttons.)
If you liked this post, do me a favor and test out some of the share button on the left. Thanks!