Reply To: Show/Hide password User login

#6547
Natale Proietto
Participant

      Hi @AizazAwan
      I managed to get show/hide password working.
      Although it doesn’t change the icon from an open eye to a closed one, but it’s still ok. I used this code:

      .woocommerce form .password-input, .woocommerce-page form .password-input {
      display: flex;
      flex-direction: column;
      justify-content: center;
      position: relative;
      }
      .woocommerce form .password-input input[type=password], .woocommerce-page form .password-input input[type=password] {
      padding-right: 2.5rem;
      }
      .woocommerce form .show-password-input, .woocommerce-page form .show-password-input {
      position: absolute;
      right: 0.7em;
      top: 0.7em;
      cursor: pointer;
      }
      .woocommerce form .show-password-input::after, .woocommerce-page form .show-password-input::after {
      font-family: dashicons;
      speak: never;
      font-weight: 400;
      font-variant: normal;
      text-transform: none;
      line-height: 1;
      -webkit-font-smoothing: antialiased;
      margin-left: 0.618em;
      content: “\f177”;
      text-decoration: none;
      }

      I used the plugin: Frontend Dashicons https://it.wordpress.org/plugins/frontend-dashicons/
      to display the icon.

      Customize Icon
      Need Customization? We specialize in delivering high-quality web and mobile design/development services to our clientele. Should you require customization services, please do not hesitate to reach out to us at your convenience.