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

Ieasha
New Member
3 0 0

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?

0 Likes
Anthony_David_
Trailblazer
229 29 87

Share store url

Shopify Expert - Theme customization | Design | Marketing | Product Sales
Hire Me: anthonyuidesigner@gmail.com
Whatsapp ( Click on number )- +33 6 28 93 62 05
0 Likes
Anthony_David_
Trailblazer
229 29 87

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

 

Shopify Expert - Theme customization | Design | Marketing | Product Sales
Hire Me: anthonyuidesigner@gmail.com
Whatsapp ( Click on number )- +33 6 28 93 62 05
0 Likes
Ieasha
New Member
3 0 0

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?

0 Likes
Anthony_David_
Trailblazer
229 29 87

Share store url 

Shopify Expert - Theme customization | Design | Marketing | Product Sales
Hire Me: anthonyuidesigner@gmail.com
Whatsapp ( Click on number )- +33 6 28 93 62 05
0 Likes
Ieasha
New Member
3 0 0
Anthony_David_
Trailblazer
229 29 87

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 

Shopify Expert - Theme customization | Design | Marketing | Product Sales
Hire Me: anthonyuidesigner@gmail.com
Whatsapp ( Click on number )- +33 6 28 93 62 05
0 Likes