How to Centre a Heading in a Specific Section (Dawn Theme)

Topic summary

A user seeks to center-align a heading (“Gifts & Arrangements”) in a specific section of their Shopify store using the Dawn theme, which currently displays with left orientation.

Solutions Provided:

Two community members offered CSS-based fixes:

  1. First approach: Add code to the base.css file targeting .title-wrapper-with-link with justify-content: center !important using a media query for screens 990px and wider.

  2. Second approach: Navigate to Shopify admin → Online Store → Themes → Actions → Edit code, then locate the CSS file (base.css, style.css, or theme.css) in the Assets folder. Add CSS targeting .collection.title-wrapper-with-link with justify-content: center.

Both solutions involve custom CSS modifications to override the default left alignment. Screenshots were included showing the current layout and expected result. The discussion remains open with no confirmation of which solution worked.

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

Trying to figure out how to change the “left orientation” of my heading in a particular section to “centre orientation”. See photo below (trying to centre “Gifts & Arrangements”)

2 Likes

Hi, Paste this code in your base.css file

@media screen and (min-width: 990px) {
    .title-wrapper-with-link {
        justify-content: center !important;
    }
}

Hi @mollybluesh

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. 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:
.collection .title-wrapper-with-link {
    justify-content: center;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!