• jbx

    (@jbx)


    I am trying to customise the addthis_config through the wordpress admin settings for this AddThis plugin, however whenever I put any JSON settings in the textfield for addthis_config values the share buttons disappear.

    I have tried to put the following settings (even on their own within {}):

    {"ui_show_promo" : false, "services_exclude" : "snipit"}

    The share buttons just disappeared.

    I am including the AddThis sharing link using this (so that I place it where I want):

    <?php do_action( 'addthis_widget', get_permalink(), get_the_title(), get_add_this_style() ); ?>

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Srijith V

    (@srijithv)

    @jbx:

    The last parameter you are using is causing the issue. Please use it in following format.

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

    $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.

    Thread Starter jbx

    (@jbx)

    Thanks for the information. I think I had tried it with ‘above’ and ‘below’ and it still didn’t work. In the end I just removed the plugin and put the HTML/Javascript code directly in the template, because I couldn’t figure out what changed suddenly.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Settings in addthis_config do not work’ is closed to new replies.