• I am trying to clean up my Woocommerce implementation and notice that your plugin adds this:

    wp_add_inline_style( 'yith-quick-view', $inline_css );

    Is there any work around to remove those styles so we can just add styling to our css?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    the way to remove this inline style is to dequeue style with this handler “yith-quick-view” and enqueue it later with a different handler. So something like

    add_action( 'wp_enqueue_scripts', 'yith_wcqv_enqueue_custom', 20 );
    function yith_wcqv_enqueue_custom(){
    	
    	if( ! defined( 'YITH_WCQV_ASSETS_URL' ) ) {
    		return;
    	}
    	
    	wp_dequeue_style( 'yith-quick-view' );
    	wp_enqueue_style( 'yith-quick-view-custom', YITH_WCQV_ASSETS_URL . '/css/yith-quick-view.css' );
    }

    Try and let me know, regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove inline styles?’ is closed to new replies.