Support » Plugin: A5 Custom Login Page » Is there any way to add placeholder text to the login shortcode?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author tepelstreel

    (@tepelstreel)

    Hello and big sorry for a very late answer.

    As I don’t do much with my plugins at the moment, I had to check that one out. And no, at the moment, there’s no placeholder in the login form or the short code.

    I don’t know how long you are willing to wait but it is on my to do list for some later time.

    Best,
    Stefan

    Plugin Author tepelstreel

    (@tepelstreel)

    I just figured out a way to get the thing done with jQuery. I use the wp function to create the login form, so it doesn’t support a place holder.

    Enter the following jQuery into one of the fields for your custom HTML:

    <script>
    (function ($) {
    	$(document).ready(function () {
    	$('#user_login').attr('placeholder', 'User Name');
    	$('#user_pass').attr('placeholder', 'Password');
      });
    })(jQuery);
    </script>

    That will give you the placeholder. If you want to make the labels disappear, some custom css will do the trick:

    div.a5_custom_login_container p.login-username label,
    div.a5_custom_login_container p.login-password label {
      display: none;
    }

    I hope that does, what you need.

    Thread Starter imonmars

    (@imonmars)

    Thanks it works great!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is there any way to add placeholder text to the login shortcode?’ is closed to new replies.