Shopify themes, liquid, logos, and UX
Hi,
Im trying to do some customization to the Dawn theme and have created a Collection List for the homepage. The title for each collection is by default beneath the image. However, I would like it to appear aligned center "inside" the image. Like they have done on the front-page of nomadix.co.
Is there anybody out there who know if this would be possible to achieve?
Please provide your website URL
Add this CSS
```
.collection__title.title-wrapper { text-align: center }
```
Should do the trick
Hello. Go to the theme code editor settings /find the base.css file / add the code at the bottom of this file:
h3.card__heading {
text-align: center;
}
Contact me and I will help you
✅ Was my reply helpful? Click Like to let me know!
Hi @LeoEcom
Thanks for helping out. I added the code but it did not do the trick, Do you have any other solution that might work?
Hi @Loftsoul
.collection-list-wrapper .card.card--standard.card--media {
position: relative !important;
}
.collection-list-wrapper .card.card--standard.card--media .card__content {
position: absolute !important;
top: 50% !important;
transform: translateY(-50%) !important;
right: 0 !important;
left: 0 !important;
margin: 0 auto !important;
text-align: center !important;
}
.collection-list-wrapper .card.card--standard.card--media .card__content .full-unstyled-link {
color: #fff !important;
}
Please add following code in your css file.
Thanks @Dbuglabpvtltd
That did the trick, I also managed to style the size of the heading thanks to your advice. However, the image is not clickable anymore. Only the text itself leads to the collection page. Is there some way to make the whole image clickable again?
Hi @Loftsoul @neerajs , has any of you managed to make the image clickable? I have the same issue. Thanks
Hello. @Snowsnow , I added this code in card-collection.liquid and closed it with </a> under <div class="card__media"> as shown below. Try it and let me know!
<a href="{{ card_collection.url }}">
Hello, this code worked well but the changes were only made on desktop, the mobile version remained the same. How can I make the changes for both?
Hi @Loftsoul, learn how to center collection title inside images in the Shopify Dawn Theme with this concise YouTube tutorial: https://www.youtube.com/watch?v=LNCzj6cxw1s.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025