"Allow customers to log in from the header of online store and at checkout" opening new page

"Allow customers to log in from the header of online store and at checkout" opening new page

paulson1
Pathfinder
122 1 8

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

Replies 2 (2)

VipulBudhiraja
Excursionist
60 5 7

To ensure the login opens in the same window on your Shopify store, follow these steps:

  1. Edit the Theme Code:

    • Go to Online Store > Themes in Shopify.
    • Click Actions > Edit code for your active theme.
  2. Locate the Header Section:

    • In the theme editor, find the header file (often header.liquid or within the Sections folder).
  3. Modify the Link Attribute:

    • Look for the login link and ensure it does not include target="_blank". Change target="_blank" to target="_self" or remove it to open in the same window.
  4. Check for JavaScript:

    • Some themes use JavaScript to control link behavior. If the problem persists, inspect any custom scripts related to the header or login.

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!

paulson1
Pathfinder
122 1 8

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