-
AuthorPosts
-
September 10, 2018 at 4:49 am #3818
Hi SIr,
I am making my first WordPress theme which is based on WooCommerce. I am getting a problem with single product page image. The problem is that my theme’s single product page image is not zooming only in my theme but it is working on all themes. I installed plugin for this. Can anyone tell me which thing has normally creating this issue?
Please Help..Thank you.
September 10, 2018 at 4:51 am #3872As mentioned here, you need to add theme support for new gallery features. Add below code into your theme’s functoons.php file.
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' ); }
November 13, 2018 at 12:21 pm #4633Hi,
Thanks for the answer. But in my theme this code is not working at all. I switch my theme to Twenty Seventeen it is working without any plugin but in my theme it is not working even with a plugin. What should I do?
Thank you.
November 13, 2018 at 12:21 pm #4634Hi,
Thanks for the answer. But in my theme this code is not working at all. I switch my theme to Twenty Seventeen it is working without any plugin but in my theme it is not working even with a plugin. What should I do?
Thank you.
-
AuthorPosts
You must be logged in to reply to this topic.