Hello could someone help me align the ‘featured collection’ heading as well as all the other sections headings to the center as in dawn theme 7.0 it comes already aligned to the left and there’s no option or tutorial to change it to the center.
Topic summary
A user seeks help center-aligning section headings in Shopify’s Dawn theme 7.0.1, which defaults to left alignment without a built-in option.
Initial Solution:
- Add CSS code to
base.cssfile targeting.title, .title-wrapper-with-linkwithtext-align: center - This successfully centers the featured collection heading and other section titles
Follow-up Issue:
- User also wants to center the collection description text below images, currently left-aligned
- Multiple CSS solutions provided targeting
.collection__title .title-wrapper > .titleand.collection-list .card__information
Resolution:
- After some troubleshooting and sharing the store URL for verification, the provided CSS code successfully centers the collection descriptions
- Issue marked as resolved
Go to Online store > Themes > Edit code > Assets > open base.css file and add this code at the bottom, click Save button
.title, .title-wrapper-with-link { text-align: center; }
Thanks! That worked. Can you help with another questions? I would like to center the collection description that is located under the image. Currently it’s aligned left and is too far left. See pic
This is Victor from PageFly - Shopify Page Builder App, I’d like to suggest this idea:
Add this CSS at the bottom
Online Store ->Theme ->Edit code
Assets ->base.css
.collection__title .title-wrapper >.title {
text-align: center !important;
}
Hope you find my answer helpful!
Best regards,
Victor | PageFly
Hi, you can add this code to do that
.collection-list .card__information { text-align: center }
I added this code, but no change. Any other ideas?
Could you send me your store URL?
Could you send me your store URL for checking?
That worked. Thanks!
