If the same thing has happened to you as happened to us, that the WooCommerce Scripts -> Enable Lightbox option, available in Settings -> General, pays you no attention whatsoever and WooCommerce carries on loading its lightbox by default alongside your brand-new FancyBox for WordPress, for example, we are going to give you a quick and simple solution.
To solve it and force WooCommerce not to load its lightbox, the only thing you have to do is go to our trusty functions.php file, which you already know is in our WordPress child theme. In it we are going to insert these lines:
And that is it, we have now forced WooCommerce not to load its particular lightbox, called prettyPhoto. Although you already know that you should only resort to brute force if the Scripts -> Enable Lightbox option has not worked for you.
We hope you find this simple piece of code useful and, if so, we look forward to your comments.
Update: given that we have detected that some PHP errors and warnings were being caused in the online shop, we have updated the code to be inserted to prevent any kind of error or warning from appearing. We have also detected an error in the layout of the WooCommerce 2.1.0 administration panel that has also been solved.
Related posts
Comments




