• Resolved sfbarth

    (@sfbarth)


    Hi!
    After the update to v3 (currently 3.0.1) I tried to remove the new zoom and lightbox functions like so (in the cild theme’s functions.php):

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

    Both as quoted above and wrapped in a function (add_action( ‘after_setup_theme’ etc.).

    However, the zoom is still there. Can you help?
    (My child theme files don’t appear to contain references to image handling except in functions.php as mentioned above.)

    Thanks! Stefan

    Theme: Child theme of Storefront 2.1.8
    Active plugins:
    Homepage Control 2.0.2
    Loco Translate 1.5.6-legacy
    WooCommerce 3.0.1
    WooCommerce Helper 1.7.2
    WooCommerce Product Add-ons 2.8.1

Viewing 2 replies - 1 through 2 (of 2 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi there!

    See if this works:

    add_action( 'after_setup_theme', 'remove_pgz_theme_support', 100 );
    
    function remove_pgz_theme_support() { 
    remove_theme_support( 'wc-product-gallery-zoom' );
    }

    Cheers!

    Thread Starter sfbarth

    (@sfbarth)

    Thanks! Adding the parameter 100 did it!
    (Tried

    add_action( 'after_setup_theme', 'nilsplanet_setup' );
    function nilsplanet_setup() { ...

    before.)
    ??
    Cheers, Stefan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘remove wc-product-gallery-zoom doesn’t work’ is closed to new replies.