Hello
I have more than 500 products on the website and in each product page there is a “Related Products” section that is set to display 5 items
Is there a way i can change the setting to display only 4 items without having to manually edit every single page? Any “Master” code i can include in the functions.php file ?
Thank you
Hi Cloudypro,
You will need to modify a line of code in the Enfold Theme (parent).
Edit wp-content > themes > enfold > config-templatebuilder > avia-shortcodes > product_snippets > product_snippet_upsells.php (go to the bottom of the page, line 214):
$output .= avia_woocommerce_output_related_products( $count, $count );
replace it with:
$output .= avia_woocommerce_output_related_products( 4, 4 );
Unfortunately, this can’t be modified via child theme.
I hope this helps.
Best regards,
Nikko
Thank you so much Nikko
It worked :)
No more questions we can close this thread / amazing support as always
Hi Cloudypro,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko