Hi all,
I would like to make the “Login/Register/Logged in as” option appear in the header, on the right side, before the cart icon.
Right now these options only appear within the drop down menu. My site is https://arianaspices.com/
Thanks to anyone who can help me out.
1 Like
-
In the left-hand side navigation, under “Sections,” click on “header.liquid” to open the header section code.
-
Look for the code responsible for rendering the cart icon, and add code
{% if customer %}
Logged in as {{ customer.first_name }}
{% else %}
Login/Register
{% endif %}
1 Like
I thank you for your reply, it was very helpful. I entered the code you provided in the location I think is correct, however the Login does not appear next to the cart, but above it. How can I change the code so that the Login is next to the cart?
Thank you again.
...
{% if customer %}
Logged in as {{ customer.first_name }}
{% else %}
Login/Register
{% endif %}
{%- assign icon = 'icon-header-' | append: section.settings.icon %}
{% include icon %}
{{ 'general.header.view_cart' | t }}