How to reverse an Account Icon code?

Solved

How to reverse an Account Icon code?

Youngerme
New Member
7 0 0

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' %}
</a>
{%- endcapture -%}

 

 

Zuzanna
Accepted Solution (1)

Asad-Mahmood
Shopify Partner
445 80 91

This is an accepted solution.

replace your code with this one

{%- capture account_icon -%}
<a
  class="header__icon-touch header__icon-touch--account"
  href="{{ routes.account_url }}"
  aria-label="{{ 'general.accessibility.go_account' | t }}"
>
  {% render 'icon-button' with icon: 'account' %}
</a>
{%- endcapture -%}
If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp
Fiver




View solution in original post

Reply 1 (1)

Asad-Mahmood
Shopify Partner
445 80 91

This is an accepted solution.

replace your code with this one

{%- capture account_icon -%}
<a
  class="header__icon-touch header__icon-touch--account"
  href="{{ routes.account_url }}"
  aria-label="{{ 'general.accessibility.go_account' | t }}"
>
  {% render 'icon-button' with icon: 'account' %}
</a>
{%- endcapture -%}
If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp
Fiver