• Resolved TigreTwoTwoTwo

    (@rickahontas)


    Hi JetPack dev team!

    Thanks for the great, robust plugin. Really enjoying all the features!

    One thing, though, as a developer, I appreciate you guys making the social sharing javascript work well, but as a designer, it’s frustrating that I can only disable CSS and JS from the sharing settings. Why not allow us to disable the CSS and JS independently (or collectively like it is now)?

    Thanks!

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

Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    If you want to disable only CSS, you could re-enqueue Jetpack’s original JS library in your plugin, like so:

    function tweakjp_add_sharing_js() {
        wp_enqueue_script( 'sharing-js-fe', WP_SHARING_PLUGIN_URL . 'sharing.js', array( ), 3 );
    }
    add_action( 'wp_enqueue_scripts', 'tweakjp_add_sharing_js' );
Viewing 1 replies (of 1 total)
  • The topic ‘Adding Option to Disable ONLY CSS, not both JS/CSS’ is closed to new replies.