Shopify: How to add a "Show password" box on the login page

Summary

Customers / login.liquid

Head into the template: customers / login.liquid and look for "customer.login.password".

customer.login.password

Below the password input add: Show password

checkbox

Theme.js

Dance theme.js, add everything at the end:

function myFunction() { var x = document.getElementById ("CustomerPassword");  if (x.type === "password") { x.type = "text"; } else { x.type = "password"; } }

theme.jsWhich will give you this: 

result

Leave a comment

Please note that comments must be approved before posting