Title: Disable css from loading
Last modified: August 30, 2016

---

# Disable css from loading

 *  Resolved [codynew](https://wordpress.org/support/users/codynew/)
 * (@codynew)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/disable-css-from-loading/)
 * Hi
 * I am trying to optimise my site and remove any unnecessary style requests.
 * I noticed that there is a stylesheet called cpk_wpcsv.css.
 * How do I disable/remove it from loading please?
 * [https://wordpress.org/plugins/wp-csv/](https://wordpress.org/plugins/wp-csv/)

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

 *  Plugin Author [CPK Web Solutions](https://wordpress.org/support/users/cpkwebsolutions/)
 * (@cpkwebsolutions)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/disable-css-from-loading/#post-6544972)
 * Hi Cody
 * I’ll try to optimize this in the next update. Until then you could try adding
   this to your ‘functions.php’ file:
 *     ```
       if ( !is_admin( ) ) {
         wp_dequeue_style( 'cpk_wpcsv_styles' );
       }
       ```
   
 * Best wishes
 * Paul
 *  Thread Starter [codynew](https://wordpress.org/support/users/codynew/)
 * (@codynew)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/disable-css-from-loading/#post-6544992)
 * Thanks Paul
 * Unfortunately that didn’t work.
 * Just to test it, I did wp_dequeue_style into the main wp-csv file and that works,
   but not when I added it to my function file.
 * I also tried adding it to the main enqueue script section of my functions file
   but no joy still 🙁
 *  Plugin Author [CPK Web Solutions](https://wordpress.org/support/users/cpkwebsolutions/)
 * (@cpkwebsolutions)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/disable-css-from-loading/#post-6544993)
 * Sorry about that. You’d have to run it inside the correct filter hook, but since
   you already got it working just edit wp-csv.php again. On next update your mod
   will be replaced by my fix.
 * Best wishes
 * Paul
 *  Thread Starter [codynew](https://wordpress.org/support/users/codynew/)
 * (@codynew)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/disable-css-from-loading/#post-6544994)
 * Thanks, that be great. I’ll ask my manager to send over a donation for the end
   of the month 🙂
 *  Plugin Author [CPK Web Solutions](https://wordpress.org/support/users/cpkwebsolutions/)
 * (@cpkwebsolutions)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/disable-css-from-loading/#post-6545196)
 * Hi Cody
 * Just testing now, and it seems like the stylesheet only appears if you have ‘
   shortcode enabled’ ticked or you’re logged in as admin.
 * If you have that option ticked, then that stylesheet is loaded to make the frontend
   export form look acceptable.
 * Best wishes
 * Paul

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

The topic ‘Disable css from loading’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-csv.svg)
 * [WP CSV](https://wordpress.org/plugins/wp-csv/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-csv/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-csv/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-csv/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-csv/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-csv/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [CPK Web Solutions](https://wordpress.org/support/users/cpkwebsolutions/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/disable-css-from-loading/#post-6545196)
 * Status: resolved