AS the only social bookmarking code from Addthis that works for wordpress.com can’t handle blog posts, I was searching for and found a way to modify the code so that when clicked, the Addthis social bookmarking.com button will enable the reader to bookmark a blog post, rather than the whole blog. Thanks to options, I now know how to modify the Addthis social bookmarking code to get the job done.
Post Update: 07 July, 2010
The modification process described in this post no longer needs to be followed, because I have devised a bookmarklet that gets the job done in an automatic manner (as opposed to the manual process discussed here). To learn how you can use the Addthis bookmarklet, please click the following link.
How to add Addthis in a wordpress.com blog post in ONE click
A reader can bookmark a blog post using the Addthis bookmarking button only when the bookmarking code contains the blog post url and blog post title. So now we put these two things in the url part of the bookmarking code from Addthis. Here is a sample of the whole url after adding the needed information:
http://www.addthis.com/bookmark.php?&url=TheBlogPostUrl&title=BlogPostTitle
Remember to replace the TheBlogPostUrl with the actual url of your post after you publish it. And replace Blog Post Title with.yes, you guessed it right
the title of your blog post!
Important:
Please note carefully that there is no space after &url= and after &title= . Also it is ok if the blog post title in the modified code contains space between the words!
***
Although the button looks the same as what you get from Addthis, the button under the post is linked to the url modified as per the instructions in this post. You will be able to bookmark this post if you click the button under the post!
The modified code
<a href="http://www.addthis.com/bookmark.php?&url=BlogPostUrl&title=BlogPostTitle" title="Bookmark this post using any social bookmarking manager of your choice!">/>
<img src="http://s9.addthis.com/button1-bm.gif" alt="AddThis social bookmarking image button"/></a>
Of course, you will have to change the ” blog post url” and “blog post title” as per instructions!
***
Good to know
Unless you modify the code as per instruction and paste the original code under your post instead, the reader has to go through the trouble of copying the permalink of your post before clicking the Addthis button and choose the desired bookmarking service and then paste the permalink url in order to bookmark it. The modified code requires no copy-paste on the reader’s part and therefore it is more user-friendly!
***
Recommended readings:
- This post explains a bit more elaborately why the social bookmarking code provided by Addthis is not compatible with wordpress.com blogs posts.
***
View all Netty Gritty posts on Social Bookmarking for wordpress.com blog posts
Tell a friend! – 