Search
 
SCRIPT & CODE EXAMPLE
 

PHP

woocommerce disable zoom on product image

/* Disable zoom on Woocommerce Product Images */

// Append to your child theme's functions.php
function remove_image_zoom_support() {
    remove_theme_support( 'wc-product-gallery-zoom' );
}
add_action( 'wp', 'remove_image_zoom_support', 100 );
Comment

woocommerce disable zoom on product image

add_filter( 'woocommerce_single_product_zoom_enabled', '__return_false' );
Comment

woocommerce disable product zoom

add_action( 'wp', 'custom_remove_product_zoom' );

function custom_remove_product_zoom() {
  remove_theme_support( 'wc-product-gallery-zoom' );
}
Comment

woocommerce disable product zoom

add_action( 'wp', 'custom_remove_product_zoom' );

function custom_remove_product_zoom() {
  remove_theme_support( 'wc-product-gallery-zoom' );
}
Comment

woocommerce disable product zoom

add_action( 'wp', 'custom_remove_product_zoom' );

function custom_remove_product_zoom() {
  remove_theme_support( 'wc-product-gallery-zoom' );
}
Comment

woocommerce disable product zoom

add_action( 'wp', 'custom_remove_product_zoom' );

function custom_remove_product_zoom() {
  remove_theme_support( 'wc-product-gallery-zoom' );
}
Comment

PREVIOUS NEXT
Code Example
Php :: laravel change post request before save 
Php :: laravel check collection not empty 
Php :: use of segment in laravel 8 
Php :: php regex replace all non alphanumeric characters 
Php :: store image in public folder laravel 8 
Php :: laravel generate env 
Php :: redirect http to https htaccess 
Php :: laravel get current domain 
Php :: try and catch laravel 
Php :: get current datatime laravel 
Php :: composer install ignore 
Php :: laravel foreach else 
Php :: laravel inrandomorder 
Php :: ubuntu install php mongodb extension 
Php :: write if and else in one line laravel 
Php :: get information from another website 
Php :: codeigniter last insert id 
Php :: delete folder laravel 
Php :: php split string along spaces 
Php :: get current url in codeigniter 
Php :: laravel module create controller 
Php :: avoid php self exploit 
Php :: install php 7.4 on ubuntu 20.04 
Php :: php shorthand if isset post 
Php :: php regex remove file extension 
Php :: php get everything after last slash 
Php :: codeigniter dump query 
Php :: php find keyword in string 
Php :: string to slug php 
Php :: convert timestamp to date in laravel 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =