Hi.
When I open one of my product images it opens as a sigle image with black air around. I can not flip though images or view as ligthbox. I tried adding this code to function.php, but nothing happens.
Here is code in php.
`add_theme_support( ‘wc-product-gallery-lightbox’ );
add_theme_support( 'wc-product-gallery-slider' );
Hey snitt,
Thank you for the inquiry.
There is a modified version of header.php file in the child theme and it probably contains the old scripts. Please get a fresh copy of the header.php template from the latest version of the parent theme and replace the old one. This should fix the lightbox issue.
Best regards,
Ismael
Hi, Ismael.
I have now replaced header with header from Enfold, but still no ligthbox.
Hi,
Thank you for the update.
We removed the following snippets from the functions.php file. The product gallery works properly now — the images opens inside the lightbox container.
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
If you want to use the plugin’s default gallery, please go to the Enfold > Shop options panel and set the Product gallery settings accordingly.
Best regards,
Ismael
Thank you so much for your help :)
Hi snitt,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko