Forum Replies Created
-
AuthorPosts
-
aolbrechtsMember
Sorry to insist, but … Need some help here 😉
aolbrechtsMemberSorry to insist, but … Need some help here 😉
aolbrechtsMember+1
aolbrechtsMemberGreat, it works, thanks !
aolbrechtsMemberAny idea please ? Thanks !
aolbrechtsMemberSorry, but still doesn’t work 🙁
My test field is :
<label id="um_field_3_devenirmembre_label" class="um_label_top" for="um_field_3_devenirmembre">Prénom*</label> <input type="text" name="first_name" id="um_field_3_devenirmembre" class="um_field_3 um_input validate[required]" label_id="um_field_3_devenirmembre_label" />
I’ve modified the functions.php as you said :
add_filter( 'user_meta_field_config', 'fieldCssClass', 10, 3 ); function fieldCssClass( $field, $fieldID, $formName ){ if ( $fieldID == 'um_field_3_devenirmembre') { $field['field_class'] = 'form-control '; } return $field; }
The class “form-control” isn’t applied.
What should I change else ?aolbrechtsMemberHello Khaled,
I’ve tried to add the code to functions.php file but still the same issue 🙁
If I edit the fields in User Meta section of the WordPress Admin and add a class to a field, the class is applied to the entire um_field_container and not only the < input >
Any idea ?
Thanks !
aolbrechtsMemberOK thanks for the answer, I’ll have a look !
-
AuthorPosts