I would like to center the headings of the following sections everywhere on the website.
Multi columns
Videos
Featured Products
Collections
Featured Collection
Topic summary
A user seeks to center headings across multiple sections of their website, including:
- Multi columns
- Videos
- Featured Products
- Featured Collection
Solution provided:
A community member offered CSS code to be added to the theme’s stylesheet (base.css, style.css, or theme.css):
.collection__title.title-wrapper.title-wrapper--no-top-margin {
text-align: center;
}
.title-wrapper.title-wrapper--no-top-margin.scroll-trigger.animate--slide-in {
text-align: center;
}
Implementation steps:
- Navigate to Shopify admin → Online Store → Themes
- Click Actions → Edit code
- Open the appropriate CSS file in the Assets folder
- Add the provided code at the bottom
- Save changes
Another contributor suggested using Beae Landing Page Builder as an alternative approach, offering to provide custom markup code.
Status: The original poster confirmed the CSS solution worked and expressed gratitude, mentioning they have additional related questions pending.
Hi @TonyG54
Try this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.title-wrapper-with-link.title-wrapper--self-padded-mobile.title-wrapper--no-top-margin {
justify-content: center;
}
.title-wrapper.title-wrapper--no-top-margin.scroll-trigger.animate--slide-in {
text-align: center;
}
.collection__title.title-wrapper.title-wrapper--no-top-margin.page-width {
text-align: center;
}
- And Save.
- Result:
I hope it help.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @TonyG54 ,
This is Anthony from Beae Landing Page Builder, and I’m happy to assist you today.
While I acknowledge that this issue falls short of the desired outcome, I have an idea that I believe might be of help:
- Go to Online Store → Theme → Edit code
- Open your theme.liquid file
- Paste below code before :
Best regards,
Anthony
Thank you very much! I’ve recently posted a few other questions, if you’d be able to help with those as well it would be much appreciated.
