WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddThis
addthis_config / addthis_share values does not work (format?) (3 posts)

  1. davydov-denis
    Member
    Posted 2 years ago #

    Dear developers,

    I wonder what is the format of addthis_config/addthis_share vlaues?

    So far I use JavaScript in the footer with

    var addthis_config = {
            ui_click: true,
         };
    
    var addthis_share = {
       templates : {
          twitter : "{{title}} {{url}} (via @myname)"
       }
    }

    It's written at admin page that config/share values should be in JSON format, yet at least this does not work in addthis_config field:

    "ui_click": "true"

    Could you please provide examples on what should be entered in these fields?

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

  2. Leo Plaw
    Member
    Posted 2 years ago #

    I agree, the documentation for the plugin and on the AddThis site is terrible. It is not unified at all.

  3. fredonis
    Member
    Posted 1 year ago #

    This example below will work... with the curly brackets it's in json format...

    { "ui_click": "true" }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags