Skip to content

eli5wp

  • code snippets

woo change products per row

June 14, 2021 by emily sparkle
// Change number of products per row
add_filter('loop_shop_columns', 'loop_columns');
if (!function_exists('loop_columns')) {
	function loop_columns() {
		return 4; // 4 products per row
	}
}
Categories code snippets, woocommerce
Post navigation
comment smackdown
woo change number of products per page

categories

  • code snippets (57)
    • admin (8)
    • child theme (1)
    • css (9)
    • elementor (1)
    • generatepress (10)
    • htaccess (4)
    • woocommerce (17)
    • wordpress (15)
  • links (4)

topics

admin email cache chrome only comments exclude font awesome google analytics google fonts hacky optimization posts reset responsive shortcode text wp-show-posts

recent

  • woocommerce button color control
  • // GeneratePress Search Box Clear
  • Google API Console
  • DKIM Authentication
  • dreamhost cache settings
© 2022 ASPIRE