WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddThis
[resolved] do_action( 'addthis_widget' ) -> customize !? (7 posts)

  1. Elan42.com
    Member
    Posted 2 years ago #

    In the changelog I read:
    Added template tags. <?php do_action( 'addthis_widget' ); ?> in your template will print an AddThis button or toolbox, per your configuration.

    But where are the options !?
    Where is a manual ?

    I need to put custom links in a place, neither widget or template tags have customization.

    http://wordpress.org/extend/plugins/addthis/

  2. Elan42.com
    Member
    Posted 2 years ago #

    so !?

    some help please ...

  3. Aaron Jorbin
    Member
    Posted 2 years ago #

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

    $url is the URL you wish to share. Generally, this should be get_permalink() if you are inside of the loop.
    $title is the title of the URL you want shared. Generally this should be get_the_title() if you are inside of the loop.
    $style can be either a string or an array. If it is in array, it should take the form of:

    $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
    );

    String can be one of the $addthis_new_styles styles listed in addthis_social_widget.php, 'above' (if you want what is chosen in the UI for above) or 'below') if you want what is chosen in the UI for below.

  4. Elan42.com
    Member
    Posted 2 years ago #

    I can't understand ...

    I'm trying to have a box with only
    facebook, print, email to a friend

    And I'm always getting all the other stuff like twitter ...

    How do I show only the 3 above links ?

  5. Elan42.com
    Member
    Posted 2 years ago #

    oh ... I resolved with this:
    http://www.addthis.com/help/custom-buttons

    thanks

  6. atomik
    Member
    Posted 2 years ago #

    @Nokao: how did you resolve it? would you like to share your trick?

    Thx

    -m.

  7. nowton
    Member
    Posted 1 year ago #

    Thank you Aaron! I cannot believe why Addthis does not document this feature, both at their supportsite and in the plugin documentation...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags