How to reverse an Account Icon code?

Topic summary

A user modified their Shopify header’s Account Icon to redirect to an external login portal instead of the default account page. They now want to restore the original functionality.

Current Issue:

Proposed Solution:
Another user provided replacement code that removes the custom <a> tag wrapper and external URL, keeping only the icon rendering. This should restore default Shopify account functionality.

Status: Solution offered but not yet confirmed as working by the original poster.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

So my code for the Account Icon in the header was this below. The reason why I have used this is so when clients click on the Account Icon it takes them to a website instead. I would like this button reversed to original. When I delete the website only (in bold) from the code, the Account Icon takes me to a ‘404 Page Not Found’ on my website instead of Account login for Shopify or something. How can I do this?

{%- capture account_icon -%}
<a
class=“header__icon-touch header__icon-touch–account”
href=https://lsaccountingfirm.joinportal.com/login?step=signIn
aria-label=“{{ ‘general.accessibility.go_account’ | t }}”
target=“_blank”

{% render ‘icon-button’ with icon: ‘account’ %}

{%- endcapture -%}

replace your code with this one

{%- capture account_icon -%}

  {% render 'icon-button' with icon: 'account' %}

{%- endcapture -%}