I am using woocommerce with themefores template. By default, woocommerce shows 4 products per line, but I want to show 5.
I use a child template, so I duplicate the woocommerce file and there is a content-product.php file inside it.
Here I changed it.
if ( empty( $woocommerce_loop['columns'] ) ) $woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 5 );
but does not work.
I read how to change this. I found this function that I entered in my functions.php file in a child template
add_filter('loop_shop_columns', 'custom_loop_columns'); if (!function_exists('custom_loop_columns')) { function custom_loop_columns() { return 8; } }
but also do not work.
Any idea how to change the quantity of goods per line in woocomerce !!!!
source share