• I am having the same error.
    I have added those 3 lines for woocommerce support but that doesn’t work.
    I have also updated my theme and deactivating all of the plugin but I am not getting success.

    add_theme_support( ‘wc-product-gallery-zoom’ );
    add_theme_support( ‘wc-product-gallery-lightbox’ );
    add_theme_support( ‘wc-product-gallery-slider’ );

    Will you please help me to find the error.
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Where are you adding those three lines of code at? This should be a pretty straightforward change, so it’s possible your theme is doing something else that is preventing this from working. Have you tried doing this on a different theme to test?

    Also, it may just be the forum’s fault, but I noticed you have smart quotes in your code. Make sure you have normal single quotes when writing the code in your editor.

    Documentation for reference: https://github.com/woocommerce/woocommerce/wiki/Enabling-product-gallery-features-(zoom,-swipe,-lightbox)-in-3.0.0

    Thread Starter sumeed

    (@sumeed)

    Hello,
    Thanks for the response.

    I am adding those lines in functions.php file of the theme.
    Yes I have added these lines and it’s working but not on my actual theme. I have also noticed a bug that the zoom function working on resolution less than 1200px but whne I increase the resolution the problem occurs again.

    Can you please explain why this is happening?

    Looking forward to talk with you more.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Sorry, but I can’t be sure why it’s not working on your theme correctly. Did you custom build this theme, or is it a theme you purchased from somewhere? If the later, you should contact the theme authors.

    There’s definitely something in your theme preventing it from working, but I do not know what. If this is a custom theme you’ve built, I guess you should just start disabling custom things the theme is doing until you find the conflict.

    We can’t provide support for third party themes here unfortunately though.

    teamtweaks

    (@teamtweaks)

    Hi,

    The same case here also, I have added the given three line code in my function.php, but still the lightbox doesn’t works. I am using the Bovile theme, purchased from www.ads-software.com.

    Please help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Woocommerce product gallery and lightbox not working’ is closed to new replies.