Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author CPK Web Solutions

    (@cpkwebsolutions)

    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

    (@codynew)

    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

    (@cpkwebsolutions)

    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

    (@codynew)

    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

    (@cpkwebsolutions)

    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.