Add a customer login link to your theme
If you're using customer accounts, and a login link doesn't display in your theme header for customers to login, then you can add a customer login link to your theme. Before you edit your theme code, review the considerations for customizing your theme.
Check for a login link on your theme
Many themes include login links by default. Before you proceed with this tutorial, check if login links are supported on your theme.
Steps:
From your Shopify admin, go to Settings > Customer accounts.
Turn on the Show login links toggle button.
After you turn on login links, visit your online store as though you're a customer, and check for the profile icon in your store header to log in.
If the profile icon doesn't display, then follow the steps to add a login link to your theme.
Add a login link to your theme
If a profile icon doesn't display in your online store header that lets customers log in to your store, then you can add a login link to your theme.
Steps:
- From your Shopify admin, go to Online Store > Themes.
- Find the theme you want to edit, click the … button to open the actions menu, and then click Edit code.
- In the Sections folder, open the
header.liquid
file. - Add the following snippet of code to the
header.liquid
file, and then click Save.