• Resolved fusisdm

    (@fusisdm)


    Hi there,
    is there a way to remove this css from all front end pages?
    /wp-content/plugins/menu-image/includes/css/menu-image.css

    I’d like to remove it in order to move those css rules in my main css file.

    Thank you

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

    (@takanakui)

    Hi @fusisdm,

    At the moment you can comment or remove the line 772
    wp_register_style( ‘menu-image’, plugins_url( ”, __FILE__ ) . ‘/includes/css/menu-image.css’, array(), MENU_IMAGE_VERSION );

    Will need to make changes in the next update so it can be removed programmatically in a plugin or theme functions.

    Thread Starter fusisdm

    (@fusisdm)

    Hi @takanakui,
    thank you for your reply.
    I’ve found another way to remove the css, putting this in my function.php:

    add_action( 'wp_enqueue_scripts', 'mywptheme_child_deregister_styles', 11 );
    	function mywptheme_child_deregister_styles() {
    	    wp_dequeue_style( 'menu-image' );
    	}
    Plugin Author Rui Guerreiro

    (@takanakui)

    Great @fusisdm

    I thought of that but was thinking that it won’t work because the CSS was enqueued in the constructor of the class. But thanks for sharing that it works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove plugin css in front end’ is closed to new replies.