Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
lewisr90
tagDiv Member

OK great,

A bit new to this but I moved this code into my functions.php in my child theme, changed the number and it didnt work.

// Number of product per page 6
add_filter(‘loop_shop_per_page’, create_function(‘$cols’, ‘return 15;’));

if (!function_exists(‘woocommerce_output_related_products’)) {
// Number of related products
function woocommerce_output_related_products() {
woocommerce_related_products(array(
‘posts_per_page’ => 3,
‘columns’ => 3,
‘orderby’ => ‘rand’,
)); // Display 3 products in rows of 1
}
}

My question is, how do i change this without it not changing in a future update. Do I have to move the whole of the functions.php into the childtheme folder? If I did would your future updates still work?

Viewing 1 post (of 1 total)