• ARSGeek

    (@chambergeek)


    Hello, A client is using this plugin with Gravity Forms. This plugin’s CSS is showing up on EVERY page. Causing 481 warnings in SEMRush for unminified CSS. Is there a way to only enable the plugin to be active ONLY on the pages with Forms?

    Thanks in Advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ARSGeek

    (@chambergeek)

    Bump

    Thread Starter ARSGeek

    (@chambergeek)

    Anyone know of a solution for this? Still not resolved for me. I’ve added this to the functions.php but it didn’t help either.

    function conditionally_load_plugin_js_css() {
    if ( ! is_admin() && ! is_page( array( 9083, 5537, 8970, 9450 ) ) ) {
    wp_dequeue_script( ‘codemonkeys-hipaa-forms’ );
    wp_dequeue_style( ‘codemonkeys-hipaa-forms’ );
    }
    }
    add_action( ‘wp_enqueue_scripts’, ‘conditionally_load_plugin_js_css’, 20 );

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin CSS showing up on every page.’ is closed to new replies.