Shopify: How to add a "Show password" box on the login page
shopify-trial-fuznet

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

2 comments

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.js

Which will give you this: 

result

Back to blog
shopify-trial-fuznet

2 comments

Good evening, look for the template with “login” in the name.

Fuznet

Hello,
I would very much like to add this box “display the password” except that the template “Customers/login.liquid” does not exist among the .liquid of my theme (Crave). Could you tell me where I'm supposed to go to add this option?
Thanks in advance (ps: I'm not a coding expert.)

Lynn

Leave comments

Veuillez noter que les commentaires doivent être approuvés avant d'être publiés.

1 de 2