How To Change Number Of Columns In WooCommerce Shop Page

Опубликовано: 14 Март 2019
на канале: Binary Carpenter
7,074
26

What is the best way to change the number of columns in your WooCommerce shop page?

There are themes that support setting number of columns for the shop page by default, however, there are theme that don't.

In such cases, you may want to add some additional code to your themes functions.php file. The good thing is it is easy to do and anyone can do that.

Here is the code you need to place in the theme's functions.php file:

add_filter('loop_shop_columns', 'woo_loop_columns', 999);
if (!function_exists('woo_loop_columns')) {
function woo_loop_columns() {
return 5; // 3 products per row
}
}


Смотрите видео How To Change Number Of Columns In WooCommerce Shop Page онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Binary Carpenter 14 Март 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 7,074 раз и оно понравилось 26 людям.