• Resolved gracepl

    (@gracepl)


    Hi,

    I’ve already styled a flexslider on the front-end of my website by coincidence. But I noticed that since I installed your plugin (which I’m using just for the back-end attachment management only) it’s overridden my styling. So I just decided to rename the ‘frontend.css’ to ‘frontend-.css’ so that it could no longer load.

    But of course that’s resulted in a 404 error. I’d rather disable it more tidily than this. Is there a way to do that that won’t get overridden when I next update? A hook perhaps?

    Thanks,
    Grace

    https://wordpress.org/plugins/wp-better-attachments/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dholloran

    (@dholloran)

    Hi,

    Probably the best solution would be to use wp_dequeue_style( 'wpba_front_end_styles' ); you can see more information in the Codex http://codex.wordpress.org/Function_Reference/wp_dequeue_style. You will want to add this in your functions.php or wherever your theme enqueues scripts/styles. You may have to change the priority for the enqueue action to something higher than 10 if it does not remove it just by adding the function above, I use the wp_enqueue_scripts action to enqueue the stylesheet, if you need more assistance please let me know.

    Thanks,
    Dan

    Plugin Author dholloran

    (@dholloran)

    I am going to mark this as resolved feel free to re-open if need be.

    In my case the above code didn’t work but putting this in functions.php did

    //remove wp better attachments frontend css
    add_action('wp_print_styles', 'mytheme_dequeue_css_from_plugins', 100);
    function mytheme_dequeue_css_from_plugins()  {
    	wp_dequeue_style( "wpba_front_end_styles" );
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to disable frontend.css from loading’ is closed to new replies.