good day,
how can I How to align Add to Cart buttons on my shop?
i paste this in theme.liquid but just work on hime page other page not align:
.product-card .text-block { min-height: 50px *!important*; }Main issue: Align “Add to Cart” buttons consistently across the shop. A CSS rule added in theme.liquid (.product-card .text-block { min-height: 50px !important; }) only affects the homepage; collection pages remain misaligned (image provided).
Proposed fix: Another member suggested adding CSS in Theme Editor > Custom CSS:
Current status: The suggested CSS did not resolve the issue on the shared collection page (https://pickandmix.ae/collections/pick-mix). Buttons remain unaligned beyond the homepage.
Open points: Correct selectors/structure for collection templates may differ from the homepage, so the CSS may not be targeting the right elements or lacks specificity on collection pages. No final solution or next steps confirmed; discussion remains open.
good day,
how can I How to align Add to Cart buttons on my shop?
i paste this in theme.liquid but just work on hime page other page not align:
.product-card .text-block { min-height: 50px *!important*; }Hi @AlexRatii , try pasting the following in the Custom CSS from the Theme Editor
.buy-buttons-blocks {
flex: 1;
display: flex;
padding-bottom: 12px;
margin-top: -12px;
}
product-form-component {
display: block;
margin-top: auto;
}
thank you for your reply but not working
Hey @AlexRatii
Follow these Steps:
<style>
.layout-panel-flex--column {
justify-content: space-between !important;
}
</style>
RESULT:
If I managed to help you then a Like would be truly appreciated.
Best,
Moeed
its work now
just checked the class
thank you
how can i align name and price also ?
Hey @AlexRatii!
To properly align the product names and prices, all product cards need to use the same image container height.
Some themes let you do this without code:
Hope this helps! ![]()
If your theme doesn’t offer this, then CSS would be the proper solution.
Try this code:
.product-media {
height: 300px; /* adjust as needed */
}
.product-media img{
height: 100%;
width: 100%;
object-fit: cover;
}