Related products
Hello,
in the single product page, i am using standard layout with tabs. I would like to show 4 related products in 4 columns and i am trying to use the following snippet:
add_filter('woocommerce_output_related_products_args', 'custom_related_products_args', 20);
function custom_related_products_args($args) {
$args['posts_per_page'] = 4; // Mostra 4 prodotti correlati
$args['columns'] = 4; // Disposti in 4 colonne
return $args;
}
but it seems not to be working
Could you please have a look? Thanks a lot
Comments
Hi,
You can build a custom product template, and set it up there.
See the following video tutorial about template creations:
https://support.muffingroup.com/video-tutorials/how-to-customize-woocommerce-single-product-layout/
Best regards