Hi. How can we help?

Display Wishlist popup on product page with multi-wishlist enabled on Avada theme

On Avada theme there is a problem when you enable multiwishlist and try to add a product into the wishlist, the popup is not displayed and you get an error.

The problem is for some reason, Avada disable Pretty-photo. In order to enable it, you should add the following code on functions.php

if( defined( 'YITH_WCWL' ) && ! function_exists( 'yith_wcwl_enqueue_pretty_photo' ) ){
function yith_wcwl_enqueue_pretty_photo(){
wp_enqueue_script( 'prettyPhoto' );
wp_enqueue_style( 'woocommerce_prettyPhoto_css' );
}
add_action( 'wp_enqueue_scripts', 'yith_wcwl_enqueue_pretty_photo', 20 );
}
Was this article helpful?
0 out of 0 found this helpful

Back to Help Center >

Powered by Zendesk