@qeyduey
Try the following filter
add_filter( 'disable_wvs_enqueue_scripts', function(){
// Load only product page. Return true to disable.
return !! is_product();
} );
Thank You
@pluginswoo
Unfortunately, that code does absolutely nothing.
All of the css classes are still being added to the body on every single page.
@qeyduey
I am sorry there is a mistake in the previously given code. Try the following
add_filter( 'disable_wvs_enqueue_scripts', function(){
// Load only product page. Return true to disable.
return !is_product();
} );
Thank You
-
This reply was modified 6 years, 2 months ago by
pluginswoo.
All of the css classes are still being added to the body of every single page:
– woo-variation-swatches
– woo-variation-swatches-theme
– woo-variation-swatches-style-rounded
– woo-variation-swatches-attribute-behavior-blur
– woo-variation-swatches-tooltip-enabled
– woo-variation-swatches-stylesheet-enabled
@qeyduey
We can try to add filter to control to handle this.
Thank You