Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Clarus Dignus

    (@clarus-dignus)

    I’ve tried adding:

    add_action( 'login_enqueue_scripts', 'hpp_enqueue_jquery' );

    …to the end of your PHP function but to no avail.

    I’ve added the attributes via jQiuery in script document of my own using:

    $('#loginform #user_login').attr( 'placeholder', 'Username' );
    $('#loginform #user_pass').attr( 'placeholder', 'Password' );

    Not sure if the issue is related to the enqueuing.

    Plugin Author Mickey Kay

    (@mcguive7)

    Hi Clarus,

    Just fixed this one, thanks for the heads up. v1.2.0 now adds support to the admin and the login screen. The trick is using the login_enqueue_scripts hook, which fires specifically for enqueueing scripts and styles on the login page.

    So v1.2.0 includes the following changes:
    – Polyfill support in the admin and login screen.
    – Support for SCRIPT_DEBUG (includes non-minified JS if SCRIPT_DEBUG is set to true, for easier debugging).

    Hope this helps, and let me know if you have any further questions/issues. All the best!
    – Mickey

    Thread Starter Clarus Dignus

    (@clarus-dignus)

    Apologies. I thought I had already responded to this topic.

    Thank you for such a swift resolution and explanation of the hook. v1.2.0 indeed remedied the required admin/login placeholder support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-login.php Support’ is closed to new replies.