View Password button

Hi all,

I want to have a ‘View Password’ button on my login page https://unclegym.co.uk/account/login.

Using Crave theme, so .json files.

Any help would be greatly appreciated, thank you!

Hi @UncleGym ,

To add the “View Password” feature to your login page, some coding knowledge is required.

Please follow these steps:

  1. In your Shopify admin, navigate to “Online Store” under Sales Channels. Click the three dots next to the theme you wish to edit, then select “Edit Code”.

  2. Locate the main-login.liquid file in the ‘Sections’ folder on the right.

Find the password input field as shown in the screenshot.

  1. Add the following <a> tag where you want the option to show or hide the password:
Show/Hide
  1. Finally, include this script in the same file within a <script> tag:

Please refer to the screenshot for more details.

If you need further assistance, feel free to ask

Thank you,
Sweans

Thank you so much!