Shopify themes, liquid, logos, and UX
Hi,
I enabled "Allow customers to log in from the header of online store and at checkout" on Customer Accounts page and I am using "Customers log in with a one-time code sent to their email (no passwords)" option.
When a user tries to login by clicking the icon on the header, it is opening a new tab.
We do not want login to open a new tab.
How to open Register / Login on the same window?
Thanks
To ensure the login opens in the same window on your Shopify store, follow these steps:
Edit the Theme Code:
Locate the Header Section:
Modify the Link Attribute:
Check for JavaScript:
This should resolve the issue! If you’d like more conversion-focused solutions, our Debales AI Sales Agent can help boost engagement by guiding customers through the shopping experience.
Enhance your artist pages with smart guidance from the Debales AI Chatbot on Shopify! Ready to help users find what they need—let’s chat!
If this answer helped, please kindly Like and mark it as the accepted solution!
Hi,
Thank you for your reply.
I could not find the code to replace on header.liquid.
I am using the theme - https://themes.shopify.com/themes/canopy
Thanks,
Paul
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025