last updated by  smdevelopers 4 months ago
2 voices
3 replies
  • Author
    Posts
  • #3818
    smdevelopers
    Participant

    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.

    #3872
    MSR
    Keymaster

    As 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' );
    }
    #4633
    smdevelopers
    Participant

    Hi,

    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.

    #4634
    smdevelopers
    Participant

    Hi,

    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.

topic tags

You must be logged in to reply to this topic.

Who’s Online

There are no users currently online

Members