AddThis for WordPress plugin version 2.0.3

EDIT: Some themes lacked the proper hooks for us to work properly. We added in some additional code to help make sure those themes could still take advantage of our plugin and thus have now released 2.0.3.

We are proud to announce that we have just released version 2.0.2 2.0.3 of the AddThis for WordPress plugin. This version includes multiple fixes and some enhancements to customized versions of what you see.

Enhanced Template Tag

To take advantage of our enhanced template tag, you just need to add the following code to your theme:

do_action('addthis_widget',$url , $title, style);

Url is the url that you want to share, title is the title you want to pass with the share, and style is the AddThis style. Take a look at the $addthis_new_styles array inside addthis_social_widget.php for a list of the styles. Another option is to pass an array for creating a custom toolbox. To do this, just create an array like the following and pass that as the $style.

$customAddThis = array(
    'size' => '16', // size of the icons.  Either 16 or 32
    'services' => 'hyves,joliprint', // the services you want to always appear
    'preferred' => '8', // the number of auto personalized services
    'more' => true // if you want to have a more button at the end 
);

Custom Toolboxes


You can now select custom as the option for which AddThis widget you want to display. This will allow you to choose the size of your toolbox, the services that you want to always appear at the start of the toolbox, the number of auto personalized services, and if you want to include our iconic orange share button.

WordPress has a tradition of each release having a haiku, so I present to you:

AddThis for WordPress
Easier to make your own
Sharing made simpler

Now head on over to The WordPress plugin repository and grab this update.

  • Peter Fleming

    Just installed the new version and it has removed the margin between text/graphics and the AddThis button when browsing with Google Chrome.

  • http://aaron.jorb.in Aaron Jorbin

    Hi Peter,

    You can adjust the margins around the button with CSS. For example:
    . addthis_toolbox{ margin-bottom:5px;}
    Adds an extra five pixels below the sharing icons.

  • Peter Fleming

    Hi Aaron,

    So do I put the code in the page’s html or one of the two plugin CSS files – addthis.css or options-page.css?

    Thanks,

    Peter

  • Yakov

    Using Atahualpa theme with plugin 2.0.4, and options “Show on excerpts:” unchecked, and both “Above/below the post” unchecked.

    Problem: on the homepage, above the post, it displays the unclickable text “Share” instead of a toolbox; no toolbox below the post at all. Same effect when using option “Show on excerpts:” checked. Any idea what is going wrong? Thanks..

  • Yakov

    … sorry, failed to tell this happens when the post is an excerpt (has a [Continue reading...] at the end).

  • http://www.workshopshed.com Andy from Workshopshed

    You can also select your desired style in the settings and use the following to display it.

    do_action(‘addthis_widget’,$url , $title, ‘below’);

  • Agnes

    I am using WP 3.3.1 with the plugin Version 2.3.2
    And I just would like to manually insert the code in my templates, as otherwise I face some issues (they dont show in several places, …)
    I ‘d love use the custom toolbox to control which ones I displayed, which I have already configurerd in the admin.
    Alternatively I could set them mlanually…

    I dont understand instructions in this post, because adding $customAddThis in the widget file does not change the admin… the custom toolbox was already there. I believe the instruction might be ffor an older version?
    Is there any way I could just add the custom stle that is there?

  • Stunami

    I placed this in my theme and it does not show up. Is this outdated?
    Version 2.4.1
    Wordpress 3.2

    i am trying to embed the small pill shape share box not the bulky icons style.

  • Stunami

    Is this right?

    It doesnt appear. However I got this to work
    do_action(‘addthis_widget’,$url , $title, ‘below’);

    But I want to manually place it in my theme.

    How does the style attribute work?

  • http://I´mworkinglocally Carlos

    Hi, I´m trying to use this pluging in spanish but there are some text (for ex the mail i get after recommending myself the post) which are still in English, or also before sending the email, the “mail form” has both spanish and english text…..i will not use the plugin if there is no way to change it.

    best regards

    Carlos