Unable to left align text in the blog pages

Topic summary

Issue: Text on the blog listing and individual blog pages was not left-aligned.

Proposed fix: A contributor advised editing the theme template to enforce left alignment.

  • Navigate: Online Store → Theme → Edit code.
  • Open: theme.liquid (Shopify’s main theme layout file).
  • Action: Paste a custom snippet before the closing tag, then save. (Note: The exact code snippet was not visible in the post capture.)

Evidence/Result: Screenshots showed the blog content aligned left after applying the change.

Outcome: The original poster thanked the contributor for the fast response, indicating the solution worked. They were encouraged to mark the reply as the accepted solution.

Status: Effectively resolved, though the precise code used isn’t shown in the thread text; images demonstrate the intended result.

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

How do I left align the text in the blog main page and separate blog page?

@BSS-TekLabs

1 Like
  • Here is the solution for you @Jiwya
  • Please follow these steps:
  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.liquid file
  3. In theme.liquid, paste the below code before and press ‘Save’ to save it

  • Here is the result you will achieve:

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.
1 Like

Thank you so much! Super fast response.

1 Like