Hello there,
hope you are doing well! ??
The problem could be caused mainly by two things:
1. Prettyphoto is deactivated by one of your plugins or themes on your site.
Please, try to add this custom code in the functions.php of your active theme:
if ( ! function_exists( 'yith_ywar_enqueue_prettyphoto' ) ) {
function yith_ywar_enqueue_prettyphoto( ){
wp_enqueue_style( 'woocommerce_prettyPhoto_css', str_replace( array( 'http:', 'https:' ), '', plugins_url( 'assets/css/prettyPhoto.css', WC_PLUGIN_FILE ) ), array(), WC_VERSION );
wp_enqueue_script( 'prettyPhoto' );
wp_enqueue_script( 'prettyPhoto-init' );
}
add_action( 'wp_enqueue_scripts', 'yith_ywar_enqueue_prettyphoto', 100 );
}
2. Your theme has overwritten some files and it’s breaking this feature.
If 1st step doesn’t work, we kindly suggest you change your active theme to another default theme like ‘Twenty Twenty’ and check if that works.
Let us know!