Shopify themes, liquid, logos, and UX
Hi there. On this site (removed) we added the code for an 'add to cart' button to display on the 'collections' pages, however we need to make it align to the bottom of the section so the buttons line up. Is this possible? Thanks in advance friends. B. 🙂
Solved! Go to the solution
This is an accepted solution.
Hi,
To make the collection items aligned bottom line, please add the code below to the assets/theme.css file.
@media screen and (min-width: 1140px) {
.ProductItem,
.ProductItem__Wrapper {
position: relative;
display: flex;
flex-direction: column;
justify-content: flex-end;
height: 24rem;
}
h2.ProductItem__Title.Heading {
height: 60px;
overflow: hidden;
}
.ProductItem__PriceList.Heading {
margin-bottom: 6px;
}
}
@media screen and (min-width: 740px) and (max-width: 1139px) {
.ProductItem,
.ProductItem__Wrapper {
position: relative;
display: flex;
flex-direction: column;
justify-content: flex-end;
height: 24rem;
}
h2.ProductItem__Title.Heading {
height: 60px;
overflow: hidden;
}
.ProductItem__PriceList.Heading {
margin-bottom: 6px;
}
}
That's for PC only.
If you resolve the issues, please click "Like" and "Accept solution".
Please let me know if you still have issues or have any questions.
Hope it helps.
Thanks.
This is an accepted solution.
Hi,
To make the collection items aligned bottom line, please add the code below to the assets/theme.css file.
@media screen and (min-width: 1140px) {
.ProductItem,
.ProductItem__Wrapper {
position: relative;
display: flex;
flex-direction: column;
justify-content: flex-end;
height: 24rem;
}
h2.ProductItem__Title.Heading {
height: 60px;
overflow: hidden;
}
.ProductItem__PriceList.Heading {
margin-bottom: 6px;
}
}
@media screen and (min-width: 740px) and (max-width: 1139px) {
.ProductItem,
.ProductItem__Wrapper {
position: relative;
display: flex;
flex-direction: column;
justify-content: flex-end;
height: 24rem;
}
h2.ProductItem__Title.Heading {
height: 60px;
overflow: hidden;
}
.ProductItem__PriceList.Heading {
margin-bottom: 6px;
}
}
That's for PC only.
If you resolve the issues, please click "Like" and "Accept solution".
Please let me know if you still have issues or have any questions.
Hope it helps.
Thanks.
@DavidEKim Thanks very much for your help. Your solution did exactly what was needed in aligning the 'add to cart' buttons. Cheers. 🙂 👍
One other question. On a product page, how would we duplicate the 'add to cart' button, currently at the bottom of the product page, to the top of the page below the product description? https://caffetech.com/products/rocket-appartamento-black-copper Thanks. B.
Hi,
You will need to edit the product-template.liquid (or some other file names) for the product page.
The image shows the DOM structure only. You have to copy the entire DOM (3 div div parts) and paste the code to after ProductMeta div.
Hope it helps.
Thanks.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025