{"id":1028,"date":"2018-07-27T09:25:42","date_gmt":"2018-07-27T09:25:42","guid":{"rendered":"https:\/\/www.darrenlambert.com\/?p=1028"},"modified":"2018-07-27T09:29:26","modified_gmt":"2018-07-27T09:29:26","slug":"how-to-change-woocommerce-product-gallery-zoom-image-size","status":"publish","type":"post","link":"https:\/\/www.darrenlambert.com\/how-to-change-woocommerce-product-gallery-zoom-image-size\/","title":{"rendered":"How to change WooCommerce product gallery zoom image size"},"content":{"rendered":"
By default the WooCommerce product gallery zoom image size is very big.\u00a0 This can cause the zoomed image to look distorted and too far from the original.<\/p>\n
The cause is that WooCommerce selects the ‘full’ image size to use as the zoomed image.<\/p>\n
Use the snippet below to the use the ‘medium’ image size as the zoom image.\u00a0 ‘large’ will give a bigger zoomed image.<\/p>\n
\/\/ Change the image size used for the WooCommerce product gallery image zoom\r\n\/\/ 'medium' or 'large' are normally the best options\r\nadd_filter( 'woocommerce_gallery_full_size', function( $size ) {\r\n return 'medium';\r\n} );<\/pre>\n","protected":false},"excerpt":{"rendered":"By default the WooCommerce product gallery zoom image size is very big.\u00a0 This can cause the zoomed image to look distorted and too far from the original. The cause is that WooCommerce selects the ‘full’ image size to use as the zoomed image. Use the snippet below to the use the ‘medium’ image size as …<\/p>\n","protected":false},"author":1,"featured_media":1031,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"yoast_head":"\n
How to change WooCommerce product gallery zoom image size - Darren Lambert<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n\n\n\n\t\n