[ad_1]
it created a link automatically, I didn’t know this page allows HTML codes.
So the link was <a href=tel:phone<phone </a<
Hello,
There are two ways to display social links in the profile header:
1) Turn on the setting “Show social links in profile header” on wp-admin > Ultimate Member > Settings > Appearance > Profile. Read this article for details.
2) Add needed social fields in the “User Meta” panel in the profile form settings page.
Use the “User Meta” panel in the profile form settings page to add a phone link to the profile header. See example.
Social links and a phone are shown as links by default. You don’t need customization to convert these fields to links.
Hello,
Thank you, I did all of them but phone number is shown as a text.
No clickable link.
Is there any way to make it with a code snippet?
The plugin should automatically convert “phone_number” and “mobile_number” fields to links in profile view. It uses a link pattern like <a href="tel:{value}" rel="nofollow" title="Phone Number">{value}</a>
Can you give a link to the profile page on your site to take a look?
You can use hooks ‘um_profile_field_filter_hook__phone_number’ and ‘um_profile_field_filter_hook__mobile_number’ to change this.
Maybe there is a third-party plugin that removes this link. Try to do a conflict test. Read How to do a plugin/theme conflict test?
Actually I want to add a Phone icon on the same line with social icons like linkedin, twitter etc.
I am using a code snippet you gave me before for user website URL.
I just try to edit that snippet for Phone, but it didn’t work.
I’m still using this code for URL
- This reply was modified 2 minutes ago by drgozen.
This is another question. This requires customization. Try to use a code snippet below instead of the old code snippet.
add_filter("um_builtin_all_user_fields","um_092221_website_url_social");
function um_092221_website_url_social( $fields ){
foreach ( $fields as $field => $args ) {
if ( isset( $field ) && $field == 'user_url' ) {
$fields[ $field ]['advanced'] = 'social';
$fields[ $field ]['icon'] = 'um-faicon-globe';
$fields[ $field ]['match'] = 'https://';
$fields[ $field ]['color'] = '#96979a';
}
if ( in_array( $field, array( 'phone_number', 'mobile_number', 'Phone' ) ) ) {
$fields[ $field ]['advanced'] = 'social';
$fields[ $field ]['icon'] = 'um-faicon-phone';
$fields[ $field ]['match'] = 'tel:';
$fields[ $field ]['color'] = '#96979a';
}
}
return $fields;
}
Thank you so much!
It works!
