Tagged: related products, woocommerce
Hello
How can I change the woocommerce related products section from 4 to 5 columns?
Best regards,
Peter
Hey Peter!
Please take a look here
https://docs.woothemes.com/document/change-number-of-related-products-output/
and let us know if that solves the issue for you.
Cheers!
Basilis
@basilis this wont work. Instead put the following code into the functions.php of an Enfold child theme
add_action( 'after_setup_theme', 'mmx_avia_woocommerce_settings' );
function mmx_avia_woocommerce_settings(){
global $avia_config;
$avia_config['shop_single_column_items'] = 5;
$avia_config['shop_single_column'] = 5;
}
The function works until 5 columns. If you need more columns you have to build additional css rules like product_column_6, product_column_7 etc.
The classes product_column_ 1 to 5 can be found in /wp-content/themes/enfold/config-woocommerce/woocommerce-mod.css for reference.