Shopify themes, liquid, logos, and UX
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
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
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024