social network icon...
 

social network icon icq link problem  

  RSS

can aktaş
(@can-aktas)
Member Customer
Joined: 2 months ago
Posts: 12
18/10/2019 12:49 pm  

Hi, I have changed the ICQ icon to the Instagram icon with using this code. But I have a problem Smile 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' );
This topic was modified 1 month ago by Elvina

Quote
can aktaş
(@can-aktas)
Member Customer
Joined: 2 months ago
Posts: 12
18/10/2019 3:34 pm  

I solved this problem by using "wpf-includes/class-template.php" file. I wonder that Does that change disappear at the next update?


ReplyQuote
Elvina
(@elvina)
Estimable Member Moderator
Joined: 3 months ago
Posts: 181
18/10/2019 4:23 pm  

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).

This post was modified 1 month ago 2 times by Elvina

ReplyQuote
Share:
Green
Default
Pear
Black Emo
{green}:grinning:
{green}:wink:
{green}:face:
{green}:inlove:
{green}:sweaty:
{green}:surprised:
{green}:lovekiss:
{green}:laugh:
{green}:formalsmile:
{green}:displeased:
{green}:cool:
{green}:resent:
{green}:nerd:
{green}:screaming:
{green}:amazed:
{green}:sad:
{green}:deceitful:
{green}:starryeyes:
{green}:evil:
{green}:shocked:
{green}:tears:
{green}:sulky:
{green}:smile:
{green}:vomited:
{green}:hi:
{green}:afraid:
{green}:crazy:
{green}:rabid:
{green}:fighting:
{green}:nonoise:
{green}:blushed:
{green}:idontknow:
{green}:scared:
{green}:razz:
{green}:kiss:
{green}:eat:
{green}:shutmouth:
{green}:gape:
{green}:suspicious:
{green}:laughingoutloud:
{green}:bruise:
{green}:crying:
{green}:pray:
{green}:serious:
{green}:excitement:
:)
:d
:wink:
:mrgreen:
:neutral:
:twisted:
:arrow:
:shock:
:???:
:cool:
:evil:
:oops:
:razz:
:roll:
:cry:
:eek:
:lol:
:mad:
:sad:
:!:
:?:
:idea:
:hmm:
:beg:
:whew:
:chuckle:
:silly:
:envy:
:shutmouth:
{pear}:happy:
{pear}:smile:
{pear}:laugh:
{pear}:laughingoutloud:
{pear}:crying:
{pear}:exhausted:
{pear}:nerd:
{pear}:surprised:
{pear}:veryhungry:
{pear}:wink:
{blackemo}:laughtertotears:
{blackemo}:gift:
{blackemo}:love:
{blackemo}:inlove:
{blackemo}:shamefaced:
{blackemo}:heart:
{blackemo}:crazy:
{blackemo}:anguished:
{blackemo}:bruise:
{blackemo}:easymoney:
{blackemo}:exhausted:
{blackemo}:vampire:
{blackemo}:shutmouth:
{blackemo}:wink:
{blackemo}:carnival:
{blackemo}:flowers:
{blackemo}:hotdrink:
{blackemo}:party: