How can I centre headings across my pages? I have been able to center the featured collection at the top of the page, but none of the rest. Any ideas?
https://2c6852-ef.myshopify.com
pass: aubril
thanks!
A user is trying to center headings across their Shopify store pages. They successfully centered the featured collection heading but cannot center other headings.
Solutions Provided:
Three community members offered CSS-based solutions:
theme.liquid modification: Add custom CSS code above the </body> tag in the theme.liquid file
main.css editing: Insert CSS targeting .title-wrapper-with-link class at the bottom of the main.css (or base.css/style.css) file with justify-content: center property
base.css targeting: Add CSS for .collection-hero .hero__title class with text-align: center !important in the base.css file
Outcome:
The original poster initially reported one solution didn’t work, but later confirmed success with “Great thanks,” indicating the issue was resolved. All responders requested the user mark helpful posts as solutions and like them.
How can I centre headings across my pages? I have been able to center the featured collection at the top of the page, but none of the rest. Any ideas?
https://2c6852-ef.myshopify.com
pass: aubril
thanks!
Hey @Jj37
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi @Jj37
Check this one.
.title-wrapper-with-link.title-wrapper--self-padded-tablet-down.title-wrapper--no-top-margin {
justify-content: center;
}
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Hello @Jj37 ,
You can try this code: it will be helpful to you
Go to the Online Store->Theme->Edit code->Assets->base.css>add this code at the bottom of the file.
.collection-hero
.collection-hero__title {
text-align: center !important;
}
No, this did not work
Great thanks