Change how many products sit side by side on shop and category pages in classic themes.
add_filter( 'loop_shop_columns', function (): int {
return 3;
}, 20 );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
WooCommerce shows four products per row by default. Larger product photos often look better three across. This snippet changes the column count.
The loop_shop_columns filter tells WooCommerce how many products go in each row. It adds a columns-3 class to the product list and marks the first and last product in each row.
Your theme’s CSS does the actual layout, so most themes respond to the new class straight away.
Open the shop. Products should now sit three across on desktop.