{HELP] Different Headers for different page

Hello!

I am using the Dawn theme and want to use a different header for a specific page template, Suppose whenever a page is created using a particular template of the page a completely different header is shown.

I tried to use this method but its not working for me

https://community.shopify.com/post/2472609

I have created a duplicate “header.liquid” file and used this code

{% if template.name == ‘index’ %}
{% section ‘header’ %}
{% else %}
{% section ‘header2’ %}
{% endif %}

Can somebody Help?

Hi @USAMARANA326 ,

You need go to customize to to setup it as well. If it still doesn’t work. We need access your store to check it.