How do you remove header from customer login page for the Debut theme?

I want my visitors to my password/landing page to register for the site during the pre-launch period without having the option to view the header site links until we are officially open for business. I have a “Log in” link on the landing page so visitors can register but I do not want them to see the site until it is completed.

How can this be done?

Share store url

Hello @Ieasha

on your theme.liquid > Wrap your {% section ‘header’%} with {%- if customer -%} ( your header code here ) {% endif %}

Your final code should look like the one below

{%- if customer -%} 
{%  section 'header'%} 
{% endif %}

Unless user signup they will not be able to see the header. If you find any difficulty let me know.

Thanks

Hi, thanks for your time.

I applied the code as stated under the template. liquid and it removed the header from the entire site.

My hope is to only remove it from the customer registration/login page.

Is this possible?

Share store url

https://www.soothebury.com/

Add this code as a replacement

{% unless page.handle == 'Register' and page.handle == 'login %}
	{%  section 'header'%} 
{% endunless %}
{% if page.handle == 'Register' and page.handle == 'login and customer  %}
	{%  section 'header'%} 
{% endif %}

Thanks