Title: Dequeue Assets
Last modified: November 18, 2019

---

# Dequeue Assets

 *  Resolved [Sean Thompson](https://wordpress.org/support/users/seanthompson/)
 * (@seanthompson)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/dequeue-assets/)
 * Hi,
 * I’m wondering if it’s possible to only load this plugin’s scripts and styles 
   on shop pages.
 * Thanks in advance,
    Sean

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

 *  Plugin Author [ndre](https://wordpress.org/support/users/ndre/)
 * (@ndre)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/dequeue-assets/#post-12153788)
 * Hi [@seanthompson](https://wordpress.org/support/users/seanthompson/),
 * You should use the following code to load it only on catalog pages:
 *     ```
       add_action('wp', 'ic_filter_catalog_styling', 5);
   
       function ic_filter_catalog_styling() {
          if (!is_ic_catalog_page()) {
             remove_action('wp', array(impleCode_EPC(), 'implecode_register_styles'));
          }
       }
       ```
   
    -  This reply was modified 6 years, 6 months ago by [ndre](https://wordpress.org/support/users/ndre/).
 *  Thread Starter [Sean Thompson](https://wordpress.org/support/users/seanthompson/)
 * (@seanthompson)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/dequeue-assets/#post-12154995)
 * Thank you. That worked perfectly, except…
 * `<link rel='stylesheet' id='dashicons-css' href='/wp-includes/css/dashicons.min.
   css' media='all' />`
 * is still loading.
 *  Plugin Author [ndre](https://wordpress.org/support/users/ndre/)
 * (@ndre)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/dequeue-assets/#post-12155027)
 * Hi [@seanthompson](https://wordpress.org/support/users/seanthompson/),
 * Please use the following code to also prevent loading the dashicons:
 *     ```
       add_action('wp', 'ic_filter_catalog_styling', 5);
   
       function ic_filter_catalog_styling() {
          if (!is_ic_catalog_page()) {
             remove_action('wp', array(impleCode_EPC(), 'implecode_register_styles'));
             remove_action( 'wp_enqueue_scripts', array( impleCode_EPC(), 'implecode_enqueue_styles' ), 9 );
          }
       }
       ```
   
 *  Thread Starter [Sean Thompson](https://wordpress.org/support/users/seanthompson/)
 * (@seanthompson)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/dequeue-assets/#post-12155039)
 * That did the job. Thank you very much.

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

The topic ‘Dequeue Assets’ is closed to new replies.

 * ![](https://ps.w.org/ecommerce-product-catalog/assets/icon-128x128.png?rev=1103243)
 * [eCommerce Product Catalog Plugin for WordPress](https://wordpress.org/plugins/ecommerce-product-catalog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ecommerce-product-catalog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ecommerce-product-catalog/)
 * [Active Topics](https://wordpress.org/support/plugin/ecommerce-product-catalog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ecommerce-product-catalog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ecommerce-product-catalog/reviews/)

## Tags

 * [dequeue](https://wordpress.org/support/topic-tag/dequeue/)

 * 4 replies
 * 2 participants
 * Last reply from: [Sean Thompson](https://wordpress.org/support/users/seanthompson/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/dequeue-assets/#post-12155039)
 * Status: resolved