Horje
remove product zoom on woo commerce Code Example
remove product zoom on woo commerce
/**
 * Remove Zoom Effect on WooCommerce Product Image ( put in functions.php file of theme)
 *
 * @param $html, $post_id 
 *
 * @return $function 
 */

function njengah_remove_zoom_effect_product_image( $html, $post_id ) {
	
    $post_thumbnail_id = get_post_thumbnail_id( $post_id );
    return get_the_post_thumbnail( $post_thumbnail_id, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) );
}
add_filter('woocommerce_single_product_image_thumbnail_html', 'njengah_remove_zoom_effect_product_image', 10, 2);
Source: njengah.com




Whatever

Related
order status automatically changes from “On hold” to “processing” Code Example order status automatically changes from “On hold” to “processing” Code Example
parser Code Example parser Code Example
phpmyadmin timedeconnexion : a placer tt en bas dans "config.inc.php" Code Example phpmyadmin timedeconnexion : a placer tt en bas dans "config.inc.php" Code Example
roblox button visible outside of scrolling frame Code Example roblox button visible outside of scrolling frame Code Example
keycloak https enable Code Example keycloak https enable Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11