How can I redirect my customer login button to a different portal?

Topic summary

A Shopify store owner wants to redirect their customer account login button to an external Subify portal instead of the default Shopify login page.

Proposed Solutions:

  • Method 1 (ZestardTech): Edit sections/header.liquid file by commenting out the existing customer account code block and replacing it with custom code pointing to the Subify portal URL.

  • Method 2 (Bilash): Search for {{ routes.account_login_url }} in the header.liquid file and replace it with the Subify portal link directly.

Implementation Notes:

  • The original poster is using the “Refresh” theme
  • Solutions require editing theme code files in Shopify Admin (Online Store > Themes > Edit Code)
  • One user (EcoGro1) attempted implementation on the Dawn theme but initially encountered issues, later discovering the URL link needed editing in the header file at line 595

Status: The discussion remains open with multiple approaches shared but no confirmed resolution from the original poster.

Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.

Hello Everyone, i need some help.

I want to redirect my shopify website account button to subify portal. Can anyone help me with this?

We they click the arrow of account on my shopify i want them to redirect on this link.

https://portal-subify.shopgram.app/login/

1 Like

https://ff8eb7.myshopify.com/ here.

Hello there,

Please share your store URL and Password.
So that I will check and let you know the exact solution here.

https://ff8eb7.myshopify.com

1 Like

Theme Name?

refresh

Hello There,

  1. In your Shopify Admin go to online store > themes > actions > edit code

  2. Find > sections/header.liquid.

Please comment this code:

{%- if shop.customer_accounts_enabled -%}
    
      {% render 'icon-account' %}
      
        {%- liquid
          if customer
            echo 'customer.account_fallback' | t
          else
            echo 'customer.log_in' | t
          endif
        -%}
      
    
{%- endif -%}

After that, please add this code:

{%- if shop.customer_accounts_enabled -%}
    
      {% render 'icon-account' %}
      
        {%- liquid
          if customer
            echo 'customer.account_fallback' | t
          else
            echo 'customer.log_in' | t
          endif
        -%}
      
    
{%- endif -%}

I’ve commented the existing code and provided the code to be added."

Go To Edit code->Section->header.liquid file search

{{ routes.account_login_url }}

if You found this then Replace With “https://portal-subify.shopgram.app/login/”

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Sip, savor, and support – your Coffee Tip helps us keep coding magic

Need a knowledgeable developer

Hello,

I have tried to add this to my website - www.ecogrofarm.co.uk but I am unable to get the code to work. I have added the code to the header file in the picture.

However, nothing seems to change on my website. Can you help with this? Would it matter that I have changed to Classic customer accounts at all?

I found you need to edit the URL link in the header file on line 595 for Dawn theme. Thank you