How to center the date on new blog posts in Brooklyn theme?

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:

  1. .header-section-header.text-center p { text-align: center; }
  2. #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.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

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.

1 Like

Hi @LauraCortes

Would you mind to share your store URL? Thanks!

1 Like

sure thing! https://highpurityaluminum.com/blogs/news/understanding-ultra-purity-aluminum

Thanks!

1 Like

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 :waving_hand:

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!

hey, thanks! can you confirm if would be here:

1 Like

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!

1 Like

Hi, how are you, Made4uo-Ribe?

I hope you are doing well . .

I’m trying to figure out,

How to Remove the DATE on blog post Pages in ‘Brooklyn theme’?

Thank you very much & look forward to hearing from you Soon . . :slightly_smiling_face: