Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
Where can i see the upsell products. Could you provide a page url ?
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
@media only screen and (min-width: 1000px) {
.woocommerce .products.related .product:last-child {
display:none !important;
}
}
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
/* hide 4th upsell on desktop */
@media only screen and (min-width: 1000px) {
.woocommerce .products.upsells .product:nth-child(4) {
display:none !important;
}
}
/* hide 3rd and 4th on mobile */
@media only screen and (max-width: 999px) and (min-width: 1px) {
.woocommerce-page .upsells ul.products li.product:nth-child(3) , .woocommerce-page .upsells ul.products li.product:nth-child(4) {
display: none !important;
}
}
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
@media only screen and (min-width: 1000px) {
.woocommerce .products.related .product, .woocommerce .products.upsells .product {
width: 31% !important;
}
}
@media only screen and (max-width: 1000px) {
.woocommerce .products.related .product, .woocommerce .products.upsells .product {
width: 48% !important;
}
}
Hi!
How can I limit related products number to two only on mobile? It shows all of them?
Please see attached.
Hey Again,
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
Thanks
ThemeNectar Support Team
Perfect, thank you.
How can I expand it for upsell products as well?
And only 3 products on desktop?
This what my Client asked for...
Where can i see the upsell products. Could you provide a page url ?
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
Thanks
ThemeNectar Support Team
Thank you,
Here is a product with upsell
https://zeinas.se/produkter/zeinas-falafel/
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
Thanks
ThemeNectar Support Team
Thank you!
I can guess what my Client ask now: We have now 3 products on desktop, but in 3 of 4 columns.
It should be in 3 columns like products above...
Hope not....
Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):
Thanks
ThemeNectar Support Team
Perfect, thank you Tahir!