• Resolved CrazySerb

    (@crazyserb)


    https://prnt.sc/pzk4pb

    None of the fields in the login/registration/account forms have any placeholders.

    Can you guys fix this?

    Huge usability issue right here, in case we want to hide the labels and use placeholders only.

    • This topic was modified 5 years, 3 months ago by CrazySerb.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @crazyserb – What was the last version you’ve installed before the latest update?

    Regards,

    Thread Starter CrazySerb

    (@crazyserb)

    I don’t know… what does that matter?

    Are certain updates in the latest version only applied IF you upgrade from a certain version or something silly like that?

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @crazyserb – There are breaking-changes made in the latest version. We also had breaking-changes made from version 1.2.x to 2.0. We need these details so we can provide further support.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @crazyserb

    I apologize, I was looking at the wrong screenshot earlier.

    I’ll discuss this issue with the account fields placeholder as a team.

    Regards,

    Thread Starter CrazySerb

    (@crazyserb)

    Line 2102 in /includes/core/class-fields.php:

    changing

    placeholder="' . esc_attr( $placeholder) . '"

    to

    placeholder="' . esc_attr( $label ) . '"

    did the job.

    I’m sure plenty more of those placeholders needed to be changed or at least the $placeholder variable needed to be properly updated as it equals to pretty much nothing in most of those cases (hence why replacing it with actual $label worked)..

    You’re welcome.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @crazyserb

    You can add the placeholders for Account fields with the following filter hook:

    + um_predefined_fields_hook
    $predefined_fields

    Sample code snippet:

    <?php
    add_filter( 'um_predefined_fields_hook', 'my_predefined_fields', 10, 1 );
    function my_predefined_fields( $predefined_fields ) {
       
       $predefined_fields['first_name']['placeholder'] = __("First Name","ultimate-member");
    
       return $predefined_fields;
    }
    ?>

    Regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Account section – fields have no labels or placeholders?!’ is closed to new replies.