I just pushed live the 2.0.1 release of our WordPress plugin. In addition to a handful of bug fixes and theme compatibility issues, we’ve added a couple of filters to make it easier for you to customize your plugin. For example, it’s now easy to implement a custom toolbox. All you need to do is include a filter (learn more about how WordPress uses filters) in your theme’s functions.php file or an additonal plugin that you create. The following filters are available:
- addthis_above_content – For the sharing buttons above the content
- addthis_below_content – For the sharing buttons below the content
- addthis_sidebar_style_output – For the widget sharing style
For example if you want to have three preferred services followed by the pillbox style share counter above the content, you can use:
return '<div class="addthis_toolbox addthis_default_style" %s > <a class="addthis_button_preferred_1"> <a class="addthis_button_preferred_2"> <a class="addthis_button_preferred_3"> <a class="addthis_counter addthis_pill_style"> </div>';
One thing to notice with this is the inclusion of %s in the container div. This allows the plugin to set the title and url for the specific post you are viewing.
Here at AddThis we love your feedback. If there are any more bugs you encounter or changes you would like to see, please don’t hesitate to visit our support forums.