How To Manually Add Social Bookmarking Links
Social bookmarking is a big a deal, and with good reason. If you can get to the front page of any of these sites, then you’re all but guaranteed to get a huge influx of traffic. However, to get one of your posts to the front you have to get readers to vote for it, and what better way to encourage voting than to provide a link right on your website or blog.
What Are My Options?
There are basically two ways you can add these links to your website, manually code them into your template or use a plugin. Two of the more popular social bookmarking plugins are Gregarious and AddThis. These are both great plugins and offer links to the most popular social bookmarking sites.
Generally, plugins are very easy to install and quick to set up, however they can also add significant time to your overall page load. This is one of the reasons I chose to manually add these links to my template instead of using a plugin.
Manually editing your template doesn’t have to be scary and usually, with some proper guidance, can be very easy. The most important thing to remember is to make a back up of the file your are editing, that way if you mess it up beyond repair you can just simply replace the file you messed up with your working backup and all is back to normal.
Choose Your Social Bookmarking Links
Alright, let’s get to it. The first step is to decide which social bookmarking site you want to provide submission links to. As a rule of thumb I would keep this list to under five. Any more than that and your site might start to look cluttered. I chose Digg, Stumble, Del.icio.us and Technorati because they’re popular and because of personal preference. You can use these or pick the ones that will give your readers the most benefit.
Choose Where To Put Them
The next step is to decide where you want to put these links. This is the part where you will want to make a backup of the files your editing. In my case, I chose to put the links at the bottom of my posts, right next to the links for comments and the permalink. To do this I will need to edit two files, the “Main Index” and “Single Page” templates (yours might have a slightly different name).
You can start with either file, as “The Loop” portion of these files should be virtually identical. Once you’ve got one working we’ll just copy the new code to the other file in the same location. I’m going to start with the “Main Index” template (because it’s first in the list).
The first thing you need to do is locate your Loop. Below is a simplified version of “The Loop”, yours may or may not have additional coding. I have marked the beginning, middle and end of “The Loop” as well as where to add your social bookmarking links so they appear at the bottom or each of your posts. You may have to experiment a little depending upon any additional code you have in your Loop.
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <=Begin Loop
<?php the_content(''); ?> <=Your Posts
### Put Social Bookmark Links Here ###
<?php endwhile; else: ?> <=End Loop
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
So What’s The Code
Now that we’ve picked the Social Bookmarking sites we want to link to and know where to put them, all we need is the code. Here are the links to the four social bookmarking sites I use.
Digg | <a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Submit to Digg">Digg It</a>
Stumble | <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>">Stumble it!</a>
Del.icio.us | <a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>">Del.icio.us</a>
Technorati | <a href="http://technorati.com/faves?add=<?php the_permalink() ?>" title="Add to Technorati Favorites">Technorati</a>
Just add that code your template (both files) and viola! If you want to provide additional links to what I have mentioned here you should check out 3spots list of over 100 social bookmarking links. It’s the most comprehensive list I’ve found.
Hopefully that wasn’t to difficult or scary, and remember if you messed something up, just replace your file with the backup you made and try again.
|
If you enjoyed reading Average Joe Blogger why not subscribe to my RSS Feed or get it delivered directly to your email inbox. |









Excellent post! Thanks a bunch! I’ve been trying to figure out how to do that, without having different plug-ins for each site.
No problem. Glad to help.
Also, Digg accepts the title now too.
dcr: Thanks for the reminder. I was totally going to update that and completely forgot.
I’ve updated this article and my blog to include that.
Why is your Technorati code different from the code on the 100 social bookmarking links? Are you sure yours is right? It looks like yours is designed to add to YOUR favorites, and not necessarily the readers favorites, but I could be reading the code wrong.
dcr: It’s just a different way of getting the same result. Basically I just “hacked” the “Add This Blog To My Technorati Favorites” button code.
However, that’s probably not the most efficient way of doing it or the easiest way to convey it to others.
Once again thanks for pointing that out. I’ve updated that link in this article to something a little more user friendly.
Looks like you have an extra space between ” and http on the Technorati code.
Thanks again for doing this. This has really helped me out, as I’m sure it will many others.
Thank you for your effort in helping make it better.
Nice post!!! I always think that manually install the code is better than using plugin. I’ll try to integrate the links by following your tips.
Add social bookmarks to your blog site such as digg, del.icio.us and StumbleUpon with simple code:
http://100-dollars.blogspot.com
Thanks for this info. Very easy to understand and implement. Chris at soupornuts.com recommended this article to me.
[…] How to Manually add Social Bookmarking Links […]
Here is an updated top 100 social bookmarking sites list http://www.prelovac.com/vladimir/top-list-of-social-media-sites
Thanks for this info. Very easy to understand and implement. Chris at soupornuts.com recommended this article to me.