Home › Forums › Jevelin Theme › Woocommerce Change Number of Related Products Display
Home › Forums › Jevelin Theme › Woocommerce Change Number of Related Products Display
Hello;
Is it possible to change number of products listed on single product page? Currently it shows 4, but due to sidebar, it looks weird. (3 on first line, second line only one product). So, I would like to change it to only 3 or 6. Any chance to achieve it with custom code?
Thanks
Hi @cihatkk,
I hope you are well today and thank you for your question.
Could you please share me the page URL from your site where it is displaying so that i can help you to achieve it?
Best regards,
Shufflehound team
Hello, thanks for prompt reply. Here is an example link:
http://n-direct.gift/katalog-suvenirov/sumka-s-logotipom-s-nashivkami/
Thanks
Solution for this topic
You can display three products there by adding the following CSS code in the Custom CSS code option of your theme on the below path.
Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code
.woocommerce.single-product .product .related .products .product { display: none; } .woocommerce.single-product .product .related .products .product:nth-child(1), .woocommerce.single-product .product .related .products .product:nth-child(2), .woocommerce.single-product .product .related .products .product:nth-child(3) { display: inline-block; }
Hello, thanks a lot. Great support.
You are most welcome here š