I was trying to remove the header from a specific page and instead of doing that I now seem to have 2 headers on every page! How do I fix this?
Its dawn theme
I was trying to remove the header from a specific page and instead of doing that I now seem to have 2 headers on every page! How do I fix this?
Its dawn theme
Hopefully you can just change to the theme version that you duplicated before you started changing things.
Hi @admin_2456 ,
If you want to remove the header only from a specific page in the Dawn theme, don’t delete the header section. Instead, wrap it in a Liquid condition.
Go to:
Online Store → Themes → Edit code → layout/theme.liquid
Find:
{% section 'header' %}
Replace it with:
{% unless request.page_type == 'page' and page.handle == 'your-page-handle' %}
{% section 'header' %}
{% endunless %}
Replace your-page-handle with your actual page handle.
Brilliant thank you! This did it!