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 :: php strip out special characters 
Php :: php file_get_contents follow redirect 
Php :: php filter_var boolean 
Php :: the_post_thumbnail add class 
Php :: laravel asset storage not working 
Php :: laravel order by desc 
Php :: php get next saturday 
Php :: get id user login laravel 
Php :: whereNull in laravel 
Php :: PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: 
Php :: php artisan php warning require 
Php :: carbon start of week minus one day 
Php :: inrandomorder laravel 
Php :: wordpress print all categories 
Php :: php base64 
Php :: php artisan db:seed Call to undefined method AppModelsProduct::factory() 
Php :: last insert id model codeigniter 
Php :: php get file contents 
Php :: wordpress get taxonomy of a post 
Php :: laravel 7 error npm run dev 
Php :: row count in codeigniter 
Php :: wp get image alt 
Php :: wp custom rest endpoint 
Php :: php compare two dates 
Php :: remove phpmyadmin ubuntu 20.04 completely 
Php :: laravel validation min string length 
Php :: php change file extension 
Php :: php find word in string 
Php :: php get hostname 
Php :: laravel convert timestamp to date 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =