HIde Header on on Multiple Pages Dawn Theme

Topic summary

  • Goal: Hide the header/navigation on Shopify Dawn theme pages. Header was already hidden on the login page; needed the same on the Register page. Secondary request: remove the footer on both pages.

  • Context: Affected URLs were the account login (/account/login) and a custom Register page (/pages/register). Screenshots were provided but not essential to the solution.

  • Solution provided: Edit theme.liquid and insert a Liquid conditional before that targets the Register page handle and the customers/login template:

    • Condition: page.handle == ‘register’ OR template == ‘customers/login’.
    • This allows applying page-specific logic (e.g., styles or markup changes) to hide the header on those pages.
  • Outcome: The original poster confirmed the solution worked “like a charm” for hiding the header/navigation on both targeted pages.

  • Status: Resolved for hiding the header. The request to remove the footer on these pages was mentioned as secondary and was not addressed further in the thread.

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

I have 2 pages on which I need to hide the header. On the first page, I was able to hide the header/nav menu

https://business.mjgtrading.com/account/login

I need to do the same on this page
https://business.mjgtrading.com/pages/register

I just cant seem to get the header/nav menu to hide on the Register page. Can anyone point me in the correct direction?

I would also like to remove the footer from these 2 pages as well but The is a secondary issue

Hello @MJGTrading ,

  1. Edit theme.liquid

  2. Paste the below code before

{% if page.handle == 'register' or template == 'customers/login' %}

{% endif %}

If problem solved don’t forget to Like it and Mark it as Solution!
And if you need help with customization/code part you can contact me for services

You can find the email in the signature below.

Thanks

worked like a charm Thank you

1 Like