Shopify themes, liquid, logos, and UX
Hello, I need to customize how some of my products look in the collection showcases, specifically the horizontal artpieces. I need the product image itself to be centered, and the text with the name + price to be at the same level as the other products. Below I have attached an image.
I would also like the products to be showcased on full screen width when viewing on desktop.
( ^ This is how it looks now, i want the top left piece (horizontal) to be lowered so its centered, and the product name + price lowered to the same level as other product names)
( ^ I would also like the product showcase to be wider if possible)
store: artisimo.es
pass: pongia
Hi @JordiP ,
To center images and align text for horizontal art pieces in your collection showcase:
Center Image and Align Text: Add this CSS to your theme.scss.liquid or base.css file:
.collection-grid .horizontal-artpiece .product-card__image-wrapper {
display: flex;
align-items: center;
justify-content: center;
}
.collection-grid .horizontal-artpiece .product-card__title,
.collection-grid .horizontal-artpiece .product-card__price {
margin-top: 20px;
text-align: center;
}
@media only screen and (min-width: 1024px) {
.collection-grid {
width: 90%;
max-width: 1600px;
margin: 0 auto;
}
}
This will center images, align the name and price, and widen the showcase on desktop.
Got it! If you found my suggestions helpful, please consider liking or marking it as a solution.
Your feedback is appreciated! If you have any more questions or need further assistance, just let me know.
Thanks and Regards
Akshay Bhatt
None of the codes seem to do anything... Could you look at it again?
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024