Shopify themes, liquid, logos, and UX
How is it possible to center the collection page description in the DAWN theme? I aligned the text to center in shopify backend, but it's in the middle of nowhere.
Link (draft mode): https://ukrzq6a10uzchdb7-28988211275.shopifypreview.com
lease Go to Online Store->Theme->Edit code then go to assets/component-collection-hero.css- ->paste below code at the bottom of the file.
.collection-hero__title+.collection-hero__description {
margin: 0 auto !important;
}
Thanks!
Hi @Picknick,
Please follow these steps:
- Step 1: Go to Online store > Themes > Actions > Edit code.
- Step 2: Go to Assets > component-collection-hero.css and paste this at the bottom of the file:
.collection-hero__description{
text-align: center !important;
max-width: 100% !important;
}
Hope it helps!
Hi @Picknick,
If it helped you solve your issue, please mark it as a solution. Thank you and good luck.
Does a similar code work to do this to the headings of all collections also??
Thanks Amanda
This code helped me! Thank you so much! (Don't forget to click "run" after you pasted the code!)
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024