Place a title in the middle

Topic summary

A user seeks help centering the “YOU MAY ALSO LIKE” title on their Shopify product page.

Solutions Provided:

Two respondents offer nearly identical CSS-based fixes:

  • Navigate to: Online Store → Theme → Edit code
  • Locate and open the theme.css or base.css file
  • Add the following CSS snippet at the bottom:
h2.related-products__heading.inline-richtext.h2 {
    text-align: center;
}

or the simplified version:

.related-products__heading {
    text-align: center;
}

Status: The issue appears resolved with actionable code provided, though no confirmation from the original poster indicates whether the solution was successfully implemented.

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

Does anybody know how I can place the title “YOU MAY ALSO LIKE” to the centre?

URL: https://excitarestudios.myshopify.com/products/flower-ring-silver

Hi @JoaquinExcitare

  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.css / based.css file and paste the code in the bottom of the file.
h2.related-products__heading.inline-richtext.h2 {
    text-align: center;
}

Result:

If my reply is helpful, kindly click like and mark it as an accepted solution.

If you are happy with my help, you can help me buy a COFFEE

Thanks!

@JoaquinExcitare please add this css to the very end of your base.css file and check,
Shopify Admin → Online Store ->Theme → Edit code → base.css

.related-products__heading {text-align: center;}
1 Like