• Resolved 8themes

    (@8themes)


    Hello,

    We found the following issue with the YITH Wishlist (free version) and WPBakery plugin:
    once the wishlist plugin is enabled it replaces the WPBakery lightbox https://prnt.sc/1g88q6t with the WooCommerce Pretty photo lightbox https://prnt.sc/1g893z6
    How could we disable this because we prefer the default WPBakery lightbox view for the WPBakery elements?

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello guys !?

    Really, why did you include that scripts/styles on each page if you could enqueue them only when it is used like you add body classes for example -> https://prntscr.com/1h10b7k??See -> https://prntscr.com/1h113b5, https://prntscr.com/1h10wf1.

    There are no conditions to check if include them or not so you are ?using? it on all pages that’s why it breaks default WPBakery lighboxes.??

    Regards, Stas

    Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    You can remove the lightbox dependency adding this custom code in the theme functions.php:

    add_filter( 'yith_wcwl_main_script_deps', function( $deps ) {
    	if ( isset( $deps[2] ) ) {
    		unset( $deps[2] ); // remove lightbox.
    	}
    	
    	return $deps;
    } );

    Try it and let us know.

    Have a great day!

    • This reply was modified 3 years, 7 months ago by Iván Sosa.
    Thread Starter 8themes

    (@8themes)

    Hello,

    Thank you very much. The solution works fine. Thanks.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict with the WPBakery gallery’ is closed to new replies.