I’m trying to update my website’s custom wordpress theme to support the new WooCommerce 3.0 lightboxes.

I’m working with this: https://puu.sh/vUzKO/c69a04f618.png

I’ve found everywhere that I need to add theme support for it. I’ve been adding this to my functions:

add_action( 'after_setup_theme','tu_woocommerce_gallery' );
function tu_woocommerce_gallery() {
    // Add support for WC features
    add_theme_support( 'wc-product-gallery-zoom' );
    add_theme_support( 'wc-product-gallery-lightbox' );
    add_theme_support( 'wc-product-gallery-slider' );
}

This does not work at all, it seems that the code is running, but not doing anything.

I’ve also tried replacing all of my /woocommerce/templates/ and that did not do anything.

I’m wondering if I need to enable something else first considering the theme is custom built?

Thank you kindly

Read more here: Updating WooCommerce 3.0 Lightbox with snippet still doesn’t work


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: