Put the code in your functions.php.
Use a hook like the following one to remove related products, this also can be placed in your functions.php
woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20 );
Hope this helps
Problem Solved.
used the following code to change the products per row in cateogry pages plus product page. Hope this helps someone else out there.
add_action( 'wp', 'per_row' );
function per_row() {
if ( is_product_category() ) {
add_filter('loop_shop_columns', 'loop_columns');
if (!function_exists('loop_columns')) {
function loop_columns() {
return 5; // 5 products per row
}
}
}
if( is_product() ){
add_filter('loop_shop_columns', 'loop_columns');
if (!function_exists('loop_columns')) {
function loop_columns() {
return 6; // 6 products per row
}
}
}
}
-
This reply was modified 7 years ago by gianclarke.
-
This reply was modified 7 years ago by gianclarke.