Start a project
WordPressGeneral

Flatsome Change Product Columns per Category

· by Daniel

If you want to change the product columns per category or on your shop page in Flatsome, use this snippet:

add_filter('theme_mod_category_row_count', function($columns) {
	if(is_shop()) {
		return 4;
	} elseif(is_product_category('YOUR_CATEGORY_SLUG')) {
		return 4;
	}
	return $columns;
}, 10, 1);

More articles

All articles →
GeneralOctober 29, 2026 EU AI Act: What the AI Regulation Means for Websites and Online Shops Since 2 August 2026, the transparency obligations of the European AI Regulation, the EU AI Act, apply. If you use an AI chatbot on your website, create images with AI or have texts… GeneralMarch 22, 2022 How to Globally Enable HTML for CF7 Mails If you do not want to enable “Use HTML” for every contact form 7 forms, then you can use the following code snippet: GeneralMay 25, 2021 How to create Variation Swatches & Attribute Images in WooCommerce Learn how to exchange boring attribute text values with images in WooCommerce. We also show you how to use these attribute images to display variation swatches on variable products…

Let's increase your online sales.

Tell us about your shop or website. A developer replies, not a sales team.

★ 4.85/5 from 800+ ratings · Envato Elite Author · Made in Germany