• Resolved steve-8bm

    (@steve-8bm)


    Hi there,
    I am having an issue with the product image lightbox.

    After I updated my WooCommerce, the image lightbox disabled.

    I did some research and add in the code that people recommended.

    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' );
    }

    The code works on all the projects that I work on except for this one.

    https://thomastextiles.com.au/

    Can anyone please give me some suggestions of what could be the issue of this site?

    For now, I have to make the image to open in new tab, so the product page can still remain open.

    WooCommerce Version – 3.5.3
    WordPresss Version – 5.0.3

    Thank you in advance.

    Steve

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter steve-8bm

    (@steve-8bm)

    Hi all,

    Any suggestion, please?

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @steve-8bm,

    If the lightbox stopped working for you this indicates an issue with your theme and this may also be what’s preventing the code you reference from working too.

    Looking at your site for you https://thomastextiles.com.au/ the creator/developers of the theme you’re using seems to be https://cyberchimps.com/ and they may have an update available for their theme which is compatible with the latest version of WooCommerce which will resolve the behaviour which you’re experiencing.

    Thread Starter steve-8bm

    (@steve-8bm)

    Hi Stuart,

    Thank you for your reply.

    I checked the theme, it is the latest version of the theme and other websites that I built are use the same theme, so I don’t think the theme is the issue here.

    Thank you again.

    Steve

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @steve-8bm,

    When cross testing this for you today we’re not seeing any similar behaviour with the product gallery images lightbox when using the Storefront theme and the functionality is operating correctly on this test product below.

    https://woostaging.mystagingwebsite.com/product/test-variable-product/

    The results of this cross testing indicate that something which is isolated to your particular install is preventing the product gallery lightbox functionality of WooCommerce from operating as it should.

    Have you tested on your site by disabling all other plugins aside from WooCommerce and also switching theme temporarily to a theme like our free Storefront theme and see if that resolves this behaviour? If it does, try enabling your plugins back one at a time to see which one could be causing the problem.

    If you haven’t carried out this type of testing on your site as yet it’s what we would recommend.

    Thread Starter steve-8bm

    (@steve-8bm)

    Hi Stuart,

    Thank you for the advice. I will test it out on a staging site.

    Steve

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Product image lightbox popup not working after add in add_theme_support code’ is closed to new replies.