Hello, I am attempting to get the Woocommerce lightbox to work on my product pages, for example:
https://almostrealthings.com/product/cultivate-showcase-ticket/
I attempted to follow the instructions based on these two forum posts but it has not worked for me
https://forum.tagdiv.com/topic/woocommerce-product-page-images-look/
https://forum.tagdiv.com/topic/woocommerce-lighbox-gallery-suppot/
There have been multiple Newspaper updates since these posts so I’m wondering if the fix has changed? I added the code
add_action( ‘after_setup_theme’, ‘yourtheme_setup’ );
function yourtheme_setup() {
add_theme_support( ‘wc-product-gallery-zoom’ );
add_theme_support( ‘wc-product-gallery-lightbox’ );
add_theme_support( ‘wc-product-gallery-slider’ );
}
and I added it to /wp-content/themes/Newspaper/functions.php but it doesn’t work. What else could I be doing wrong? Please advise.
Thank you, Zach
Hello,
After the latest theme updates that code needs to be set on this path => wp-content/plugins/td-composer/legacy/Newspaper/functions.php or you can use simply a child theme a set the code in the function.php file from the child theme.
Thank you!
Hi Anamaria,
I have tried the code in that path and just added it again but it still doesn’t work. Any other ideas?
Thanks,
Zach
Hello, Zach
I made a test using your code and for me works well => https://www.screencast.com/t/rU35HFpl -> https://www.screencast.com/t/1z0ovZJQwz -> https://www.screencast.com/t/0RGe1ppkh9
Please clear your cache, and see the results.
Thank you!
Hi, I have tried again exactly as you did and cleared the cache and it still does not work, as seen here:
https://almostrealthings.com/product/cultivate-showcase-ticket/
I do not have a child theme in use so the code is in wp-content/plugins/td-composer/legacy/Newspaper/functions.php
Does it matter that I’m still on version 10.3.7?
Thank you,
Zach
-
This reply was modified 5 years by
almostrealthings.
Hello,
Normally it should not be related to the version used. Please do a test using only tagDiv plugins on a staging website, because there is a possibility, to be a plugin conflict, also if you are using a cache plugin, deactivate it, clear all cache(also from your browser) and try again. See if the problem persists.
Thank you!