• Hi,

    in order to prevent the AddThis from injecting in the head all of the styles for all of the possible tools (we just use Share Sidebar and Inline Share Buttons) I am trying to use addthis_config in the plugin setting with {"ui_use_css":"false"} or {"ui_use_css":false} but none of them seems to have the expected result.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter YuMyo

    (@nikho)

    I’ve also tried to use the following code as found here https://github.com/addthis/AddThis-WordPress-plugin-cookbook

    
    add_filter('addthis_config_js_var', 'at_cookbook_addthis_config_js_var');
    function at_cookbook_addthis_config_js_var($addthis_config)
    {
        // you can use and of the addthis_config options from https://www.addthis.com/help/client-api
        $addthis_config['ui_use_css'] = false;
        return $addthis_config;
    }
    

    but again no change.

    Is it possible that the above will work using https://www.ads-software.com/plugins/addthis/ instead of this one? Please make clear what’s the default behaviour and how to use the ‘ui_use_css’ config variable correctly. Thank you.

    • This reply was modified 8 years, 1 month ago by YuMyo.
    • This reply was modified 8 years, 1 month ago by YuMyo.
    Plugin Author addthis_matt

    (@addthis_matt)

    Hi there,

    I apologize for the confusion, but unfortunately, the ui_use_css option was deprecated a couple of years ago. At this time, we don’t have any options that would prevent our CSS from being added.

    Thread Starter YuMyo

    (@nikho)

    Thanks for clarifying Matt.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Prevent CSS Injection in Head’ is closed to new replies.