Dawn Theme - How do I center the headings/content on the pages, ie products,comingsoon,About us

Topic summary

A user seeks to center headings and content across all pages of their Shopify store using the Dawn theme, noting that the homepage is already centered but other pages default to left alignment.

Solutions Provided:

  • Center H1 headings: Add h1 { text-align: center !important; } to the bottom of the base.css file in the Assets folder.

  • Center paragraph text and images: Add p { text-align: center; } to the same CSS file.

  • Center footer elements (email subscription, social icons, text): Apply custom CSS targeting footer blocks, forms, and newsletter sections with text-align: center, margin: auto, and flex-direction: column properties.

  • Center copyright text: Use display: flex; justify-content: center !important; on .footer__content-bottom-wrapper.page-width and add margin: auto; padding-top: 10px; to .footer__copyright.caption.

Outcome:

The user successfully centered all headings, content, images, and footer elements (including copyright) through iterative CSS adjustments provided by community members. The issue is resolved, with the user expressing gratitude for the assistance.

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

Hello,

I’m trying to center the headings and content on all the pages on our website. It seems to be set up properly on the home page but the remaining pages by default are left. Any and all help is greatly appreciated!

Thank you again in advance

Hey, to align the headers, for example H1, add the following code to the bottom of your base.css file.

h1 {
    text-align: center !important;
}
2 Likes

Hi @TC13 ,

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:

  1. Go to Online Store → Theme → Edit code
  2. Open your theme.liquid file
  3. Paste below code before :

Best regards,

Anthony

Thank you so much! This works great for the headings on all the pages! Is there a way to also have the content, images and text to appear centered?

Thank you

Hello Anthony,

Thank you so much for your help, I attempted the above but without any luck.

Hi @TC13

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:
.rte p {
    text-align: center;
}
  • And Save.

i hope it help.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

This worked amazing centering all the content and images! hurray! Excellent support from everyone involved! Thank you

Thanks again, I don’t want to be a bother but I have to ask if there is an easy way to do the same in the footer for the desktop view? centering text, email subscription box, & socials

Thanks a million!

Yeah, Im not sure if this one.

Jusr check it.

Same Instruction.

h2.footer-block__heading.inline-richtext {
    text-align: center;
}
form#ContactFooter {
    margin: auto;
}
.footer-block--newsletter {
    align-items: center;
    flex-direction: column;
}

Result:

I hope it help.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Maybe you like to center the copyright also.. :sweat_smile:

Use this.

.footer__content-bottom-wrapper.page-width {
    justify-content: center;
}

Nice to see all align.

I love that idea! unfortunately the copyright part didn’t take but the rest worked perfectly Sweet! I appreciate all your assistance!

Try this one again in the footer.

.footer__content-bottom-wrapper.page-width {
display:flex;
justify-content: center !important;
}

Unfortunately that didn’t work but that was such an amazing idea I’ll certainly keep working at that until the copyright is centered as well. Such a great idea and it will improve the look greatly, Thanks so much for all of your assistance!

I found another solution.

Same Instruction.

.footer__content-bottom .footer__copyright.caption {
margin: auto;
padding-top: 10px;
}

Just a reminder Im just suggesting. :sweat_smile: You dont need to do it.

This worked great! Awesome awesome awesome

THANK YOU SO MUCH!