How to change columns count of Related Products Feature

Updated on September 20, 2017

There is a feature in Woocommerce called Related Products which in Jupiter you can see in front end in single product pages.

Related Products

This feature is part of Woocommerce plugin itself and to follow up it is better to contact their support directly. There a re other workarounds regarding Woocommerce front end column system which are added as filters. For more information please kindly check Woocommerce website.

Related Products

You can see an example of the feature by clicking here and scrolling down to the bottom of the page.

This feature has 2 columns by default in Jupiter, but this can be changed by taking steps below:

1Install a Child Theme.  

Install a Child Theme. For more information please click here.

2Add the code below into functions.php file of your child theme: 

function woo_related_products_limit() {
global $product;

$args['posts_per_page'] = 6;
return $args;
add_filter( 'woocommerce_output_related_products_args', 'jk_related_products_args' );
function jk_related_products_args( $args ) {

$args['posts_per_page'] = 4; // 4 related products
$args['columns'] = 2; // arranged in 2 columns
return $args;

Did this answer your question?