Change the link for customer accounts icon in the header

Site preview: https://tuanx73jrn87wol7-63190401240.shopifypreview.com

Hi,

I’d like to change the link for the accounts icon in the header. I don’t want my customers to go to Shopify’s account page, but instead to go to a page I have created (which includes a link to change settings via Shopify’s accounts page).

How do do this?

Thanks,

Luke

@LJC2 - please open header.liquid file, check what link is given to customer icon and change it via coding.

{% if shop.customer_accounts_enabled %}
                {% if customer %}

how exactly do I change the link? I want it to take the customer to

/pages/the-lounge

@LJC2 - see this line in above code , it appears twice, so you can change its link to your page


this will become


please change to this and check

That worked! Thank you Suyash, I really appreciate it!

1 Like

@LJC2 - welcome, do let me know if you need anything else.

Suyash,
I have another issue related to link for the account icon.. I actually need to let them login first!

What code would make the account icon link take them to the sign in page if they are not logged in, but then when they are logged in, the icon takes them to /pages/the-lounge ??

@LJC2 - ok I think then you need to change first login code to the original one… we changed it in 2 places

I changed the first one back but it still goes to the new link

Oh sorry I misread your advice! I switched them around and that worked! You’re a magician! ? :rainbow:

Thank you again!