Login Logout

Highlighted
New Member
6 0 0

Hi all,

 

Whenever I test my site and try to log in the navigation stays as "log in." I'd like to change it so after a customer logs in that navigation feature changes to log out or my account so it is intuitive to use. Any help here?

0 Likes
Astronaut
1126 150 297
You'll need to find that in your code and use liquid to determine if the customer is logged in or not:

{% unless customer %}
Log in
{% else %}
Log out
{% endunless %}
If my solution helped you, please like and accept as solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes
Highlighted
New Member
6 0 0

Awesome, if I am using the Debut theme do you know which part of the code this would be in? Realistically I'd like it to say Log Out when someone is logged in.

0 Likes