woocommerce lightbox

Hi,
I'm buidling a site with Upfrontbuilder. It is a woocommerce site. he theme doens't support the new lightbox settings (yet) .
Is it possible to activate this

add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );

I have no idea where to place this.
with kind regards,

Aad

  • Dimitris

    Hey there Aad,

    hope you're doing good and thanks for reaching us!

    I just tested that using a little MU plugin. Simply go ahead and access your server via FTP, create a new MU plugin file like /wp-content/mu-plugins/woo-gallery.php (simply create the /mu-plugins/ folder if it doesn't exist) and insert the exact following snippet in there:

    <?php
    add_action( 'after_setup_theme', 'woo_support' );
    function woo_support() {
      add_theme_support( 'wc-product-gallery-zoom' );
      add_theme_support( 'wc-product-gallery-lightbox' );
      add_theme_support( 'wc-product-gallery-slider' );
    }

    Warm regards,
    Dimitris