WooCoomerce - Disable Product-Image Zoom

@ITS
72 Posts
@ITS posted this 31 August 2022

Hey,

i cant disable the Product Image Zoom for Woocommerce in Wordpress with Snippset in the functions.php or Plugin.
Only a CSS Hack works... but not the best Solution.

this works...

.cloud-zoom-big, .cloud-zoom-lens, .cloud-zoom-tint, .cloud-zoom-soft {
    display:none!important;
}

this works not.. why ???
i try in wordpress theme functions.php and the functions.php for "woocommerce" in the theme.

function no_zoom() {
remove_theme_support( 'wc-product-gallery-zoom' );
}
add_filter( 'woocommerce_single_product_zoom_enabled', 'no_zoom' );

or

add_filter( 'woocommerce_single_product_photoswipe_enabled', 'remove_wc_gallery_lightbox' );
function remove_wc_gallery_lightbox() { 
  remove_theme_support( 'wc-product-gallery-lightbox' );
}

please have you an correct snippset for themler templates ?

Hey, i cant disable the Product Image Zoom for Woocommerce in Wordpress with Snippset in the functions.php or Plugin. Only a CSS Hack works... but not the best Solution. this works... .cloud-zoom-big, .cloud-zoom-lens, .cloud-zoom-tint, .cloud-zoom-soft { display:none!important; } this works not.. why ??? i try in wordpress theme functions.php and the functions.php for "woocommerce" in the theme. function no_zoom() { remove_theme_support( 'wc-product-gallery-zoom' ); } add_filter( 'woocommerce_single_product_zoom_enabled', 'no_zoom' ); or add_filter( 'woocommerce_single_product_photoswipe_enabled', 'remove_wc_gallery_lightbox' ); function remove_wc_gallery_lightbox() { remove_theme_support( 'wc-product-gallery-lightbox' ); } please have you an correct snippset for themler templates ?

Last edited 31 August 2022 by @ITS

Vote to pay developers attention to this features or issue.
3 Comments
Order By: Standard | Newest
donna641flint
1 Posts
donna641flint posted this 13 September 2025

That's an excellent and creative workaround. You've correctly identified a way to bypass Plotly Studio's default behavior of copying a static file into the project. By writing a direct choiceADVANTAGE command in the Data module, you're instructing the software to read from the live file path every time, which is a great way to handle local data exploration. As you noted, this method is limited to your local machine because the specific file path wouldn't exist on a remote deployment server.

That's an excellent and creative workaround. You've correctly identified a way to bypass Plotly Studio's default behavior of copying a static file into the project. By writing a direct [choiceADVANTAGE][1] command in the Data module, you're instructing the software to read from the live file path every time, which is a great way to handle local data exploration. As you noted, this method is limited to your local machine because the specific file path wouldn't exist on a remote deployment server. [1]: https://www.choiceadvantage.com.co
hazeldavid240
1 Posts
hazeldavid240 posted this 23 September 2025

Well, the same issue I encountered last week at a cafe while working for my client remotely here in Alaska. It was freezing cold, so I had to sit outside because the cafe was filled with double layers of varsity jackets. As for your problem, let's fix that. Why it's not working is because the remove_theme_support() function must be called after your theme is fully set up and ready, i.e., inside the after_setup_theme action. Also, disabling WooCommerce's zoom or lightbox won't stop third-party scripts (like Cloud Zoom) from initializing.

Well, the same issue I encountered last week at a cafe while working for my client remotely here in Alaska. It was freezing cold, so I had to sit outside because the cafe was filled with double layers of [**varsity jackets**][1]. As for your problem, let's fix that. Why it's not working is because the **remove_theme_support()** function must be called after your theme is fully set up and ready, i.e., inside the **after_setup_theme** action. Also, disabling WooCommerce's zoom or lightbox won't stop third-party scripts (like Cloud Zoom) from initializing. [1]: https://americanjacketsmaker.com/category/men-varsity-jacket/
layijad338
5 Posts
layijad338 posted this 4 weeks ago

Get the latest VMware 2V0-13.25 practice questions at Examcollection.us. Strengthen your skills in VMware Horizon Cloud and virtual desktop infrastructure to pass your Professional Desktop and Mobility certification with confidence.

Get the latest VMware [2V0-13.25 practice questions][1] at Examcollection.us. Strengthen your skills in VMware Horizon Cloud and virtual desktop infrastructure to pass your Professional Desktop and Mobility certification with confidence. [1]: https://www.examcollection.us/2V0-13-25-vce.html
You must log in or register to leave comments