AddThis Sidebar Widget
The plugin is now hosted by wordpress.org
I’ve written a wordpress widget to put AddThis buttons in your sidebar. This is a convenient way for visitors to subscribe to your feed or bookmark your pages without cluttering the sidebar with a gazillion buttons for all the different feed readers and social bookmark sites.
Installation:
- For Wordpress 2.0/2.1, first install the widgets framework.
- Download the plugin and unzip it in wp-content/plugins.
- Activate AddThis Sidebar Widget in the plugin configuration panel.
- Visit the widgets configuration panel and drop one or both of AddThis Subscribe and AddThis Bookmark into your sidebar.


Widget configuration is pretty self-explanatory. You will most likely want to leave the title blank. If you want stats from AddThis, enter your username. The AddThis page can be opened either in the current window, in a new winow or in a JavaScript popup.
You can see the widget in action right here in my sidebar. If you use it on your site or have any problems, please leave a comment/trackback.
History:
- 1.0 Initial release for Wordpress 2.1 and earlier.
- 1.1 Updated for Wordpress 2.2 (breaks support for 2.1 and earlier).
- 1.2 Minor changes. Now works on any Wordpress 2.x.
Tags: AddThis, Blogging, Social-bookmarking, Widgets, Wordpress


May 11th, 2007 at 05:05
Very nice wordpress widget, great job!
May 12th, 2007 at 01:24
[...] - Pretentious nonsense » AddThis Sidebar Widget (tags: plugins [...]
May 21st, 2007 at 08:28
It works great, except that I’m not seeing the button images in my sidebar. This is true for both the feed and the bookmark. Instead, I’m seeing the alternate text for the buttons (”AddThis Feed Button”).
When I view the HTML for the page, there’s no URL where it should be looking for the button picture. All I have is:
May 21st, 2007 at 15:43
VogonPoet, sorry about that. If you are running Wordpress 2.2 make sure you are running version 1.1 of my plugin. If you run Wordpress 2.1 or earlier, use version 1.0 of my plugin. The reason for this is an incompatible change in the code between the old widgets plugin and what is included with Wordpress 2.2. I might have anticipated that this would trip some people and worked around it. Maybe version 1.2 will support any version of Wordpress…
May 24th, 2007 at 05:10
[...] To find out why your sidebar widget may not be working (if its not), visit: http://foolip.org/blog/2007/05/06/addthis-sidebar-widget/ [...]
June 1st, 2007 at 06:45
[...] der werte Besucher sich jetzt aussuchen darf, was er braucht - oder neu kennenlernt. Praktisch: Das AddThis Sidebar Widget als WordPress-Plugin von Philip [...]
June 1st, 2007 at 10:54
I copied it in the plugin folder, activated it but nothing happens, it does not show up in the sidebar. How do I get it there? Pls. advise, Thank you!
June 1st, 2007 at 13:56
Make sure that you have the widgets plugin installed if you are using Wordpress 2.0 or 2.1 (it’s included with 2.2). Then visit the Presentation > Widgets administration panel and drag it to your sidebar.
June 1st, 2007 at 23:42
I’ve installed the plug-in and I have 2 issues.
One, it seems I Have version 1.0 and when I download 1.1 from this site I still get version 1.0???
Second, when I added the widget the next widget on order is pushed to the side. You can see this on the site.
Thanks for your help
June 2nd, 2007 at 14:02
Having tested the plugin (and liking it very much), I can see what ‘title’ is for, but not ‘username’.
Maybe this is a silly question. 我很尴尬.
June 2nd, 2007 at 14:21
呵呵,你不必尴尬
username is your registered username at addthis.com. This is completely optional, but if you use it you can see some stats on addthis.com about what people are bookmarking, etc.
June 2nd, 2007 at 14:38
好的.谢谢老兄.
June 2nd, 2007 at 19:21
Steve. Sorry about the version numbers, the 1.1 zipfile really is version 1.1, I just forgot to update the version number in the plugin. This is fixed now.
As for the strange effects in your sidebar, I’m guessing this is related to the theme you use. Can you tell me which theme it is? The button is wrapped in a
<div style="text-align:center">in order to center it in the sidebar, this could be conflicting with some of your themes CSS. If you’re in the webhosting business I trust you’re able to try removing this part of the code to see if it makes a difference. If it does, I might add a configuration option to disable the centering (or at least not doing it with a div).June 2nd, 2007 at 20:39
how if i want to add the plugin manually to my sidebar?
i’m using wordpress 2.1…
thank you! =)
June 2nd, 2007 at 22:07
clys, using wordpress 2.1 doesn’t stop you from using widgets. If you really want to do it yourself however, I suggest simply going to addthis.com, generating the HTML code for the button and pasting that in your sidebar. If you think that there’s something my widget can do that this doesn’t achieve, get back to me and I’ll see if maybe I can add a function for the old-school sidebars out there…
June 3rd, 2007 at 00:14
I’ve released version 1.2, which brings back support for Wordpress 2.0 and 2.1.
June 3rd, 2007 at 02:04
Philip, thanks for your suggestion!!! nice to surf on your site! so many useful thoughts & sharing from you~ keep it up!!!
June 4th, 2007 at 09:33
Hi - The theme is SeaCliff 1.0 by Charles Kirkendall
http://www.blog-themes.xynfo.com/free-wordpress-theme-seacliff/
I’m not in the hosting business, we’re blog writers and I’m setting up this blog for the client. (http://www.expertbloggers.com/)
So I’m not sure where to start. Any help would be appreciated
Thanks,
Steve
June 4th, 2007 at 17:53
Steve, you seem to have made some modifications to the theme, it doesn’t look very much like the theme you pointed to. By the looks of it, your theme needs a title for each sidebar item in order to look right, start by adding a title and see how that looks. It doesn’t make sense to have a title of course, but that’s not something I can do anything about, your theme is designed that way.
June 24th, 2007 at 01:18
[...] from sites like Technorati to place in your sidebar. One available widget that I am aware of is the Add This Sidebar Widget from foolip.org, I will mention that I personally have not used this so I can’t tell you to [...]
June 29th, 2007 at 19:37
[...] Visit [...]
July 11th, 2007 at 00:25
我很喜欢你的这个插件.可以让”ADD” PART不再显得那么臃肿.
可惜我没有自己的BSP,希望有天可以直接使用上它:)
July 11th, 2007 at 12:03
A lot of people using AddThis are frustrated because it gives TOO many options and is just a static button. There’s a new widget called ROMlet that will dynamically update, showing people the posts and stats for posts that are already being voted for or bookmarked and encouraging them to link to sites: http://romlet.com
August 7th, 2007 at 18:19
Looks good to me! Does it work on WP 2.2.2?
August 7th, 2007 at 18:24
I’m running WordPress 2.2, so I see no reason that it shouldn’t work with 2.2.2. Tell me if you run into any problems.
August 12th, 2007 at 00:49
[...] Widget, the About Me Widget (which would really be “About Us” — Brian and I), Add This Widget (for all your social bookmarking needs), maybe an RSS Aggregator, Digg Items Widget, Folding [...]
August 13th, 2007 at 01:38
Great plugin. I have one cosmetic issue though. If you go to my Website, you’ll see that the two buttons (bookmark and subscribe) are surrounded by boxes. This happens both on IE7 and Firefox 2.0.06. I’m not a coder. Could you point me to the location where I can remove these boxes? Or is it the theme I’m using? Much appreciated.
August 15th, 2007 at 14:51
Mechanicki, this does seem to be related to the theme your using. If you can, just edit the code and add style=”border: none” to the img-tag. If this fixes the problem, tell me and I’ll add it to my code as well.
August 15th, 2007 at 23:10
Thanks for the tip Philp. I added “border:none” to the img tag in my CSS file and it worked.
August 28th, 2007 at 22:32
Any chance you can change the larger buttons to not show the Windows icon?
August 28th, 2007 at 22:53
Well, the images are made by AddThis, if you want to change them I think you should ask them for permission. As it is I use the buttons directly from their server, so changing them is only possible with some modifications to the plugin code. Other than that I sympathize, may Windows disappear forever.
September 5th, 2007 at 08:54
[...] Add This Widget - An easy “click to add” widget that allows people to bookmark the page or subscribe to various feeds. May be able to configure it for use with a Friends Page or community watch functionality. Feeling : pleasedListening to : Printers and copiersCurrently Reading : Expense chart [...]
September 20th, 2007 at 05:03
I can’t uninstall completely the plugin, i already deactivated and eliminated the plugin files, the code of sidebar is the same at the original, and nevertheless it keeps on appearing the elements created for “AddThis” in the sidebar. Somebody help me please. (pd. my native language isn’t the english)
September 20th, 2007 at 08:08
Prinmode, do you have some kind of cache plugin installed? I can’t see anything in your sidebar…
September 21st, 2007 at 04:53
Philip, you’re right. It had to be the “wp-cache” plugin because now I don’t see anything of “addthis” (it’s freak, i’m refreshed many times). Thanks for answering.
October 15th, 2007 at 14:44
[...] WP官方下载页面 | 插件作者下载页面 [...]
October 31st, 2007 at 07:00
[...] AddThis Sidebar Widget 1.2 - AddThis is an awesome plugin that gives users the ability to bookmark a specific page to one of any number of bookmarking services such as Digg, Delicious, Technorati, ect. Instead of having a ton of icons or badges for each service, I can use one image which makes it easy to implement and use. You can see this plugin in action by clicking on [...]
November 2nd, 2007 at 20:21
I have a multilanguage website, unfortunately it seems they are only offering this for english bookmarks? It would be great if I could just change the image the widget uses to have it read “Agregar a Favoritos” which is spanish for “Bookmark”.
Any help or ideas greatly appreciated.
November 2nd, 2007 at 21:40
Unfortunately AddThis only provides their service in English, at least as far as I know. There’s not much I can do about it with this widget, so perhaps you could send a mail to the people at AddThis and ask if they plan to localize their buttons?
February 2nd, 2008 at 18:22
Hi , it’s possible to translate this plugin to french ?
Has anyone allready tryed it ?
February 2nd, 2008 at 18:33
As I said in the comment above, AddThis only provides their service in English. To translate it you’d have to make new buttons with the new language, but that’s something AddThis themself would have to be involved with, so please get in contact with them first.
April 10th, 2008 at 03:24
Hi! Thanks for the great plugin. Love it! I wanted to change the size of my button, so I went into the php file and changed everywhere where it said ‘width’=>160 to ‘width’=>182, which is the size of my sidebar. The buttons then look great but then I get this error at the top of my theme:
Warning: Cannot modify header information - headers already sent by (output started at /home/mawbooks/public_html/blog/wp-content/plugins/addthis-sidebar-widget/addthis-widget.php:1) in /home/mawbooks/public_html/blog/wp-content/plugins/commentremind.php on line 87
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mawbooks/public_html/blog/wp-content/plugins/addthis-sidebar-widget/addthis-widget.php:1) in /home/mawbooks/public_html/blog/wp-content/plugins/enhanced-wp-contactform/wp-contactform.php on line 264
Obviously, it’s conflicting with two of my other plug-ins. Any hope? (If you take a look over there I’ve switched it back.)
April 10th, 2008 at 10:21
Natasha, I tried making the change myself without any PHP errors. Are you sure you didn’t accidentally remove a comma or something that caused a syntax error? Still, you shouldn’t change these values as they match the button sizes – changing them will cause the images to scale and look really ugly on most browser. The biggest button AddThis offers is 160×24, if you want something bigger (that still looks good) you should probably contact AddThis and ask if they can’t make one.
April 23rd, 2008 at 04:51
Hello Philip,
I’m afraid we wordpress.com bloggers can’t use plug-ins. So I have created an Addthis bookmarklet to help wp.commers automatically generate Addthis links for a wordpress.com blog post.
This is for any wordpress.com blogger who might pop in here for some Addthis wonder!
Thanks!!