Forums

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

  1. Nokao
    Member
    Posted 7 months 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. Nokao
    Member
    Posted 7 months ago #

    so !?

    some help please ...

  3. Aaron Jorbin
    Member
    Posted 7 months 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. Nokao
    Member
    Posted 7 months 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. Nokao
    Member
    Posted 7 months ago #

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

    thanks

  6. atomik
    Member
    Posted 3 months ago #

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

    Thx

    -m.

  7. Nowton
    Member
    Posted 1 week ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags