How do I adjust the heading to be in the middle , it displays all the way to the left on DAWN theme
suki.com.au
pass - deucea
Topic summary
A user needed help centering the featured collection heading on their Shopify Dawn theme website, which was displaying left-aligned by default.
Initial Solution Attempt:
- First CSS code targeting
h2.title.inline-richtext.h1.scroll-trigger.animate–slide-inwithtext-align: center !important;did not resolve the issue - Instructions included navigating to Online store >> Themes >> Customize >> Settings >> Custom CSS tab
Working Solution:
- Alternative CSS code
.collection__title {text-align: center !important;}successfully centered the heading - User confirmed this second approach worked
Status: Resolved. The issue was fixed using custom CSS targeting the collection title class.
sukico.com.au sorry typed my website incorrect
Hi @JGBowie
Go to Online store >> Themes >> Customize >> Click on Settings icon to the left >> Scroll down to the bottom and paste it to the custom CSS tab.
h2.title.inline-richtext.h1.scroll-trigger.animate–slide-in {
text-align: center !important;
}
this one didn’t work ![]()
Can you please try below if that was not working or let me know where you added the css
.collection__title {text-align: center !important;
}
this worked thank you !
@JGBowie
If you find this helpful, please mark the answer as solution.
