Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Spacetime

    (@spacetime)

    To disable loading of devices.css file you have to edit ad-inserter.php:

    BEFORE

    function ai_enqueue_scripts_hook () {
      wp_enqueue_style ('ad-inserter-devices', plugins_url ( 'css/devices.css', __FILE__), false, AD_INSERTER_VERSION);
    }

    AFTER

    function ai_enqueue_scripts_hook () {
      //wp_enqueue_style ('ad-inserter-devices', plugins_url ( 'css/devices.css', __FILE__), false, AD_INSERTER_VERSION);
    }

    Thread Starter gabu69

    (@gabu69)

    Thanks a lot for the support

    Please consider this as an option in the GUI since its a worthless file for many people and less http requests for the visitors that aint using it

    Plugin Author Spacetime

    (@spacetime)

    I will probably make it to load only if there is at least one code block that needs it.

    Plugin Author Spacetime

    (@spacetime)

    Latest version 1.6.4 loads devices.css only if at least one code block needs client detection.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable CSS of the plugin’ is closed to new replies.