• I am using the User Registration Plugin to create a registration form on my WordPress site. However, I am encountering an issue where the user_login input field automatically capitalizes the first letter on mobile devices due to the default keyboard behavior.

    To ensure that usernames are entered correctly and consistently in lowercase, I would like to set the HTML attribute autocapitalize=”none” for this field. Unfortunately, I couldn’t find a built-in option in the plugin settings or documentation to achieve this.

    Here’s a summary of what I’ve tried:

    1. Adding JavaScript via the functions.php file to modify the user_login field dynamically.
    2. Searching for a filter or action hook provided by the plugin to customize the input field attributes.

    Despite these efforts, I’ve been unable to apply autocapitalize=”none” effectively. Could you kindly guide me on how to achieve this, either by using a built-in plugin feature or through a developer-friendly method such as a filter or hook?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support sanjuacharya77

    (@sanjuacharya77)

    Hi @altayko,

    Thanks for writing in. Regarding your query, could you please add the custom code from this link: https://snipsave.com/user/ranjankhanal/snippet/xYcBsnP7nWtxPUDZey/

    Do let us know whether it works for you or not and I will get bak to you.

    Regards!

    Thread Starter altayko

    (@altayko)

    Thank you for getting back to me and for sharing the custom code. I’ve implemented it as suggested, and it successfully adds the autocapitalize=”none” attribute to the user_login input field.

    However, despite this addition, the keyboard on mobile devices still defaults to uppercase when the input field is selected. I’m not sure if this issue is specific to my setup or if it’s a behavior that might need further adjustment in the plugin’s configuration or implementation.

    Could you please let me know if there’s anything else I might need to check on my end? Alternatively, is there another approach to ensure the mobile keyboard defaults to start lowercase for this field?

    I appreciate your assistance and look forward to hearing from you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this review.