Title: Plugin Enqueue and CSS
Last modified: April 2, 2020

---

# Plugin Enqueue and CSS

 *  Resolved [qeyduey](https://wordpress.org/support/users/qeyduey/)
 * (@qeyduey)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-enqueue-and-css/)
 * Hello,
 * I’m curious… Why does this plugin need to:
 * 1. add a dozen body tags on every single page?
    2. be enqueued on every single
   page even if it’s not a product page?

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

 *  [pluginswoo](https://wordpress.org/support/users/pluginswoo/)
 * (@pluginswoo)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-enqueue-and-css/#post-12631348)
 * [@qeyduey](https://wordpress.org/support/users/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
 *  Thread Starter [qeyduey](https://wordpress.org/support/users/qeyduey/)
 * (@qeyduey)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-enqueue-and-css/#post-12631469)
 * [@pluginswoo](https://wordpress.org/support/users/pluginswoo/)
 * Unfortunately, that code does absolutely nothing.
 *  Thread Starter [qeyduey](https://wordpress.org/support/users/qeyduey/)
 * (@qeyduey)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-enqueue-and-css/#post-12631478)
 * All of the css classes are still being added to the body on every single page.
 *  [pluginswoo](https://wordpress.org/support/users/pluginswoo/)
 * (@pluginswoo)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-enqueue-and-css/#post-12655168)
 * [@qeyduey](https://wordpress.org/support/users/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](https://wordpress.org/support/users/pluginswoo/).
 *  Thread Starter [qeyduey](https://wordpress.org/support/users/qeyduey/)
 * (@qeyduey)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/plugin-enqueue-and-css/#post-12660994)
 * 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
 *  [pluginswoo](https://wordpress.org/support/users/pluginswoo/)
 * (@pluginswoo)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/plugin-enqueue-and-css/#post-12689695)
 * [@qeyduey](https://wordpress.org/support/users/qeyduey/)
 * We can try to add filter to control to handle this.
 * Thank You

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

The topic ‘Plugin Enqueue and CSS’ is closed to new replies.

 * ![](https://ps.w.org/woo-variation-swatches/assets/icon-256x256.gif?rev=3157951)
 * [Variation Swatches for WooCommerce](https://wordpress.org/plugins/woo-variation-swatches/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-variation-swatches/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-variation-swatches/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-variation-swatches/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-variation-swatches/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-variation-swatches/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [pluginswoo](https://wordpress.org/support/users/pluginswoo/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/plugin-enqueue-and-css/#post-12689695)
 * Status: resolved