How to make rich text center aligned

Topic summary

A user seeks help center-aligning rich text content on their Shopify store’s ‘shipping and returns’ page.

Solutions Provided:

Two community members offered similar CSS-based solutions:

  1. Navigate to Online Store → Edit Code → theme.liquid file
  2. Insert custom CSS code above the </body> tag
  3. Use text-align: center !important; targeting the rich text section

Key Details:

  • Both responses included code snippets for center alignment
  • One responder also provided the reverse code for left alignment if needed
  • Solutions involve editing the theme.liquid file directly
  • The approach uses CSS styling with !important declaration to override existing alignment

Status: The question appears answered with working solutions, pending confirmation from the original poster.

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

Hi I want to center align my rich text on the ‘shipping and returns’ page.

Here is the link: https://0a272e-93.myshopify.com/pages/shipping-returns

(also provide the code for left aligning the text in case i do not like how center alignment looks)

How can I do this?

Hey @Tinctoria

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hello @Tinctoria

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.rich-text-section .rich-text-description p{ text-align: center !important; }

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

if you want to do left align replace center with left