• Resolved MarcGuay

    (@marcguay)


    Hello,

    Is it possible to customize the services offered by the Sharing Sidebar? I see that the Sharing Buttons Above/Below Content features have an option but not the sidebar. I tried adding a services_compact array to the addthis_config variable in the Advanced options tab without any effect.

    Marc

    https://wordpress.org/plugins/addthis/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter MarcGuay

    (@marcguay)

    So it seems that the Sharing Sidebar is part of something called Smart Layers which is controlled by a different set of configs that are not available for customization by the plugin. I worked around it by turning off all of the features of the plugin and adding code to my custom JS file which mimics the code generated by the plugin but with a ‘services’ variable as well. Customization through the admin would obviously be more ideal but if anyone else is looking for a solution, there it is.

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Good (and fast) hacking.

    Here’s the doc for that: http://support.addthis.com/customer/portal/articles/1200473-smart-layers-api#share

    Specifically, here, you’d want to use addthis.layers.share.services

    We’ve discussed adding a UI to the plugin for this, but haven’t gotten to it yet.

    Thanks Marc!

    Thread Starter MarcGuay

    (@marcguay)

    Hi Julka. Is it possible to modify only the services in my custom JS and keep the original addthis.layers code or does that snippet set-up as well as execute the sidebar? Rephrased, is it possible to activate the Sharing Sidebar in the plugin and only add a simple customization like

    addthis.layers.services = 'facebook,twittah,etc'

    to my custom JS file?

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Hi Marc.

    The hacky way would be to go into addthis_social_widget.php and hard code your desired settings for addthis.layers in addthis_sidebar_script (~ line 1429), but that will be overwritten any time you upgrade the plugin.

    The code base that does the sharing sidebar is too messy right now for me to give you a more elegant way of hooking into an action at a specific time to add your preferred services in a way that will be unlikely to break in the future.

    I’ve created a task internally to add a text area for addthis.layers just like we have for addthis_share and addthis_config. That’s much a simpler add than the full featured drag and drop option, and I can probably get that into a release sooner.

    Thread Starter MarcGuay

    (@marcguay)

    Hi Julka. Thanks for the insight, I’ll keep an eye on the releases to see if/when the feature is added.

    Plugin Contributor Julka Grodel

    (@jgrodel)

    Hi Marc.

    Just a quick not to let you know the addthis.layers json field went out in 5.1.0 yesterday. It can be used in WordPress mode.

    Thanks,
    Julka

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Customize Services of Sharing Sidebar’ is closed to new replies.