Over the past month I’ve had 3 Cloud Zoom users email me about changing the number of thumbnail columns on the single product page.
The answer I gave all three and also posted to the WooCommerce forum was to add the following to their theme functions.php file
1 2 3 4 |
add_filter ( 'woocommerce_product_thumbnails_columns', 'zz_thumb_cols' );
function zz_thumb_cols() {
return 5; //Change the 5 to reflect how many columns you need
}
|
But, just for kicks and giggles on a Sunday night, i decided to put together a quick plugin that will allow you to set this in the WooCommerce settings, no editing code
- Download the zip file here
- Extract the zip file
- Upload the ‘woocommerce-thumbnail-columns’ folder to your plugins directory
- Login to your WordPress admin and click on ‘Plugins’ in the menu
- Scroll down and find ‘WooCommerce Thumbnail Column Changer’, click ‘Activate’
- Now find ‘WooCommerce’ in the menu and hover over it, click settings
- Click on the ‘Catalog’ tab and scroll to the bottom and there is the drop down to set the column number