This topic has 4 replies, 2 voices, and was last updated 6 years ago ago by Rose Tyler
Hi,
Since the recent theme update, my products are no longer centred on mobile devices and appear aligned to the left. https://prnt.sc/lj2jn5
How can I fix this and have them centred?
thanks,
Hello,
Please try to add this code in style.css file of the child theme:
@media only screen and (max-width: 992px) {
.products-grid .product, .products-grid.product-count-3 .product, .products-grid.product-count-3 .product:nth-child(5n+1):first-child, .products-grid.product-count-3 .product:nth-child(4n+1):first-child, .products-grid.product-count-3 .product:nth-child(3n+1):first-child, .products-grid.product-count-3 .product:nth-child(2n+1), .products-grid.product-count-3 .product:nth-child(n) {
margin-left: 15px !important;
margin-right: 15px !important;
}
}
Do not forget to clear cache before checking the result.
Regards
Thank you – that fixed it.
You’re welcome!
Regards
You must be logged in to reply to this topic.Log in/Sign up