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:

Copy to clipboard

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

Suscríbete
Notificar de
0 Comments
Más antiguos
Más recientes Más votados

In this post

Products and services

Latest posts

Latest comments

Subscribe!

Lista de correos de APG

DATA PROTECTION: In accordance with data protection regulations, we provide you with the following processing information: (+)

  • Responsible: Art Project Group.
  • Treatment purposes: to respond to queries or any type of request made by the user through any of the forms of contact that are made available on the website. Sending communications about products or services (with your consent).
  • Your rights: access, rectification, portability, deletion, limitation and opposition. More information about the treatment in the Privacy Policy.

What we post on !

Se ha publicado #WooCommerce 11.2.2: actualización de seguridad que refuerza las API REST y Store, mejora la validación de CSV y corrige problemas en pagos y pedidos. Incluye cambios en la base de datos.

¡Actualiza cuanto antes!

13 hours ago