How can I align all page headers to the left?

Hello, I want the page headers to be on the left, “How to: Offeast” in this case.

The collection page and homepage is correct but not the other pages. How do I solve this?

Hi @Oe23 , Could you please share your store URL and password (if enabled). So that we can help you. Thank you!

Hello @PageFly-Victor , offeast.com, thank you.

Hi @Oe23 ,

This is Victor from PageFly - Landing page builder, I’d like to suggest this idea for solution:

Step 1. Go to Online Store → Theme → Edit code
Step 2. Open your theme.liquid theme file
Step 3. Paste below code before :


Hope my answer will help you.

Best regards,

Victor | PageFly

Thank you for your answer @PageFly-Victor , but it did not solve the problem, or perhaps I did it wrong?

@Oe23 You should find a tag at bottom, like photo i attached

Perfect, that solved the problem for that page, but not the other pages, like offeast.com/pages/faq

You can replace my previous code by the code below:


Okay now the pages are all correct, but the Contact form is weird.

I want to keep it to the left, but have the form look normal.

You can try replace by this code, it won’t affect to form contact :

{% if canonical_url contains 'contact' %}

{% endif %}

This did the opposite, now only the Contact page is left-aligned

Oh sorry about that, You can replace below code first. Then I will provide the code to re-align the contact page

{% if template contains 'page' and handle != 'contact' %}

{% endif %}

That is great, and if you could provide the code for the Contact page, that would be perfect!

Do you want the word “contact” to the left? I think it’s pretty good right now

Yes Contact and the form to the left, if possible.

You can add this code below:

{% if template contains 'page' and handle == 'contact' %}

{% endif %}

That’s perfect on desktop, but not on mobile ..

You can replace above code by:

{% if template contains 'page' and handle == 'contact' %}

{% endif %}

Perfect, could you maybe provide a code to make the other pages like Contact on mobile?