Flatsome Change Product Columns per Category

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);

Leave a Reply

Your email address will not be published. Required fields are marked *

We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our cookie policy.

Close Popup
Privacy Settings saved!
Privacy Settings

When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. Control your personal Cookie Services here.

These cookies are necessary for the website to function and cannot be switched off in our systems.

Technical Cookies
In order to use this website we use the following technically required cookies
  • wordpress_test_cookie
  • wordpress_logged_in_
  • wordpress_sec

Decline all Services
Accept all Services