@hrtc3c7
You can create a custom template for the Members Directory and edit the Search string to your custom search text.
You change this line number 257 in the base template file members.php from my text example Search placeholder to your custom text. See the example in the documentation.
<label>
<span><?php _e( 'Search:', 'ultimate-member' ); ?></span>
<input type="search" class="um-search-line" placeholder="<?php esc_attr_e( 'Search placeholder', 'ultimate-member' ) ?>" value="<?php echo esc_attr( $search_from_url ) ?>" aria-label="<?php esc_attr_e( 'Search', 'ultimate-member' ) ?>" speech />
</label>
This UM documentation guide will show you how to create custom templates.
https://docs.ultimatemember.com/article/1516-templates-map
Plugin Support
Yurii
(@yuriinalivaiko)
Hello @hrtc3c7
The “Search” text is suitable for most cases. Adding too many settings makes the plugin difficult to use.
For advanced layout customization, you can override the templates in your child theme. That is what @missveronicatv recommended.
Just copy the members.php template file to wp-content/themes/{your-theme}/ultimate-member/templates/ directory, where {your-theme} is your child theme folder. Then change a text inside the placeholder attribute in the line 257, see https://github.com/ultimatemember/ultimatemember/blob/d0c8dcce0d5e67189a4a702e557880552f4ec9b3/templates/members.php#L257
Regards
Ok that’s do the job but then we have to manage the overrided template plus the ultimate-member language file where we add the new text.
It’s a shame not include this kind of personnalization like it is for example for some button text !
Regards
@hrtc3c7
You can download and try this new plugin “Directory Search Placeholder”
https://github.com/MissVeronica/um-directory-placeholder
dowloaded and installed
set text for Custom Search Placeholder but this is not working, I still have standard search placeholder.
@hrtc3c7
Yes, you are right the first version only worked for English language.
New plugin version 1.1.0 with site language independence.
Download and update by WP plugin upload.
Update to version 1.1.0 done.
That’s perfect !
Regards