Hi akaracing,
prettyPhoto is a required js library for wishlist, and it is a standard module included within woocommerce; removing it may lead to unpredictable errors.
Anyway, if you know what you’re doing, you can add this couple of lines of code at the end of function.php of your theme
function remove_pretty_photo(){
wp_dequeue_style( 'woocommerce_prettyPhoto_css' );
wp_dequeue_script( 'prettyPhoto' );
wp_dequeue_script( 'prettyPhoto-init' );
}
add_action( 'wp_enqueue_scripts', 'remove_pretty_photo', 99 );
Let me know if this solves your problem
Have a nice day 🙂
Thread Starter
Aleks
(@akaracing)
Hi,
We have implemented the function into the function.php and this worked very well.
Thank you for you reply and the function snippet.
Kind regards
AK
Glad to hear good news 🙂
Marking this as resolved
If you have appreciated our plugin and our support, please don’t forget to give us a 5-star vote, and consider buying our premium version: here you can find more information about it, and here you can try a live demo of the plugin. 😉
Have a nice day!