Posted on Leave a comment

How to fix improper gallery image thumbnail size on WooCommerce product?

We can run WooCommerce on a WordPress site with a theme that doesn’t specifically designed for WooCommerce. And ignore the incompatibility notice in the dashboard for design preference reason.

If you know WordPress coding, a non-supported WooCommerce theme is missing add_theme_support( ‘woocommerce’ ) in its main function.

You will have some store-related problems when you use this kind of theme; for example, product image or gallery thumbnail size not properly configured. The thumbnail grid below the product images slideshow in single product page is usually broken as there is no fixed size specified.

To fix this issue while you don’t want to switch to WooCommerce supported themes, you can apply the below short snippet into your child theme’s functions or add it with the Code Snippets plugin.

Continue reading How to fix improper gallery image thumbnail size on WooCommerce product?