Hi,
Is it possible to align the add to cart button from different products to the same height?
Here is my website: https://1cabe3-26.myshopify.com/
Thank you.
Hi,
Is it possible to align the add to cart button from different products to the same height?
Here is my website: https://1cabe3-26.myshopify.com/
Thank you.
Hello @Mentorpublish
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
In theme customizer, go to Theme Settings, find “Custom CSS” and add the following code:
.product-thumbnail, .product-thumbnail__info {
display: flex;
flex-direction: column;
flex-grow:1;
}
.product__form {
margin-top: auto;
}
Or, can use “Custom CSS” in product grid sections settings
Hi @tim_1 ,
Thx for the solution, it worked perfectly.
Hi @tim_1 ,
Sorry to bother again, just found out if I change the product card from “Grid” to “Slideshow”, then the alignment of add to cart will be gone, do you know how to solve this issue?
Thank you very much.
Try adding
.product-thumbnail {
height: 100%;
}
Yeah, sometimes it happens when you have no access to the source code…
Try this instead:
.product-thumbnail {
min-height: 100%;
}
Hi @tim_1 ,
Oh this code worked, thank you very much.