How to center text body on a notification templates?

Topic summary

Main issue: Center the body text in a notification template that is currently left-aligned.

Proposed solution: Add custom code to the Shopify theme.liquid file before the closing tag.

  • Steps provided: Online Store > Themes > More actions > Edit code > open theme.liquid > paste code above .
  • Note: The actual code snippet is missing in the post body; understanding may rely on the linked screenshot.

Context: theme.liquid is the main layout file for a Shopify theme; placing CSS there can affect global styling, including notification templates if they reference theme styles.

Outcome: No confirmation that the solution works. The exact code to center text is not shown in the thread text, leaving the issue partially unresolved without the screenshot content.

Summarized with AI on December 31. AI used: gpt-5.

Currently, it is set to align to the left - how do we change the body of a notification template to align centered?

Hi @f_media

This is Richard from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the


Hope this can help you solve the issue

Best regards,

Richard | PageFly