Hi, I need help centering the date. The old blog posts have the date centered, but when I add a new one, it is on the left side of the page and looks ugly. this is Brooklyn template.
Topic summary
A user encountered a styling issue where blog post dates appear left-aligned on new posts but centered on older posts in the Brooklyn Shopify theme.
Solution provided:
- Navigate to Shopify Admin → Online Store → Themes → Actions → Edit code
- Locate the CSS file in the Assets folder (either base.css, style.css, or theme.scss.liquid)
- Add CSS code at the bottom of the file to center-align the date text
Two slightly different CSS snippets were suggested:
.header-section-header.text-center p { text-align: center; }#shopify-section-article-template .section-header p { text-align: center !important; }
Both approaches target the header section paragraph elements to apply center alignment. Screenshots were shared showing the before/after results and file locations.
Related question: Another user asked how to completely remove (rather than center) the date from blog posts in the same theme, but this remains unanswered.
Hi @LauraCortes
Would you mind to share your store URL? Thanks!
sure thing! https://highpurityaluminum.com/blogs/news/understanding-ultra-purity-aluminum
Thanks!
Thanks for the info, check 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:
header.section-header.text-center p {
text-align: center;
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Hello @LauraCortes ![]()
In Shopify Admin, you can go to Edit theme code, open file theme.scss.liquid and add this code at the bottom
#shopify-section-article-template .section-header p {
text-align: center !important;
}
The result
Hope that helps!
Go to Asset folder, find the theme.scss.css file and paste the code on the very last line.
Thanks!
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!





