Tweaking your Social Bookmarking widgets
Apr 8th, 2009 by Johnny
Are you tired of your social bookmarking widgets looking like this under each of your posts and pages? Notice the line spacing between them.
|
Well some simple editing of the plugins’ code can make it look like this:
|
First … we modify the CSS stylesheet for the Sociable plugin. Change the first line in …/wp-content/plugins/sociable/sociable.css
| from: | div.sociable { margin: 16px 0; } |
| to: | div.sociable { margin: 5px 0; } |
Next … we modify the code of the AddThis Social Bookmarking Widget plugin and the ShareThis plugin; changing DIV and P tags to a corresponding SPAN tag.
To make it easier for you here are their respective Unix patch files:
addthis_social_widget.php.patch and sharethis.php.patch.
NOTE: whenever you update these plugins, you must modify the code again (unless the authors alter their code).
Enjoy!

