Hi, I have changed the ICQ icon to the Instagram icon with using this code. But I have a problem π when clicking to the Instagram icon, the ICQ page is opened. How can I do fix that?
function wpforo_change_social_field_icon1( $fields ){
//Field name
$field = 'icq';
//Font-Awesome icon class http://fontawesome.io/icons/
$icon = 'fab fa-instagram';
if( !empty($fields) && isset($fields[$field])) $fields[$field]['faIcon'] = $icon;
return $fields;
}
add_filter( 'wpforo_member_after_init_fields', 'wpforo_change_social_field_icon1' );
I solved this problem by using "wpf-includes/class-template.php" file. I wonder that Does that change disappear at the next update?
Hi @can-aktas,
Please put the following code in the active theme functions.php file:
add_filter('wpforo_member_after_init_fields', function($fields){
if( wpfkey($fields, 'gtalk') ){
$fields['gtalk']['label'] = $fields['gtalk']['title'] = $fields['gtalk']['placeholder'] = wpforo_phrase('Instagram', false);
$fields['gtalk']['faIcon'] = 'fab fa-instagram';
}
return $fields;
});
Β Also please remove all your previous added codes (that's very important).
add_filter('wpforo_member_after_init_fields', function($fields){
if( wpfkey($fields, 'icq') ){
$fields['icq']['label'] = $fields['icq']['title'] = $fields['icq']['placeholder'] = wpforo_phrase('icq', false);
$fields['icq']['faIcon'] = 'fab fa-youtube';
}
return $fields;
});
hi again π I have already used "gtalk" field for Instagram. So I have used this code for youtube this time. But the youtube field does not become a link. it became only a text. I want a youtube link that is clickable on the profile page. What can I do?
Example link : https://www.spearfishingturkey.com/forum/profil/zipkinci/
Hi @can-aktas,
I'm really sorry but there is no way to make it link. I think you should checkout the wpForo Users Custom Field paid addon. This will extend your users profile page without any issue.
Addon Page: https://gvectors.com/product/wpforo-user-custom-fields/
Documentation: https://wpforo.com/docs/root/addons/wpforo-user-custom-fields/