Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Having trouble using a different social icon #649715

    Oops, I found out what I did wrong earlier…Works perfectly now!!!!

    Thanks!

    • This reply was modified 8 years, 5 months ago by natying.
    in reply to: Having trouble using a different social icon #647273

    Hi Andy and Mike,

    I tried using your code but still doesn’t work.
    My friend taught me a quick fix without hacking into the codes.

    Just go to functions.php, find the section that shows all the default font icons used in the theme. Under //social
    find a social media icon that you don’t need and just replace the icon code.

    For example, I replaced flickr’s icon code with sina weibo’s icon code

    'flickr' => array( 'font' =>'entypo-fontello', 'icon' => 'ue92b'),
    Do not change “flickr” to “sinaWeibo”! Only change the icon code
    Then, in the social profiles dropdown box, select flickr and insert the URL for weibo. The sina weibo icon should appear in the frontend.

    My friend said, “The reason why the code that was provided to us doesn’t work probably because we still need to define the hover effect and other stuff related to social icon in some hidden place.”

    Other than this solution, me and my programmer friends can’t find other solutions other than hacking into the codes.

    Hope this helps Mike!

    Cheers,
    Natalie

    • This reply was modified 8 years, 5 months ago by natying.
    in reply to: Having trouble using a different social icon #646016

    I just tried using another sina weibo font from other fontello icons (ie: font awesome), used ue800 (which I found out is the default code as you add icon fonts) and icon name is just ‘weibo’, but it still won’t work!!

    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    function avia_add_custom_icon($icons)
    {
    $icons['weibo']	 = array( 'font' =>'awesome', 'icon' => 'ue800');
    return $icons;
    }
    
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    function avia_add_custom_social_icon($icons)
    {
    $icons['weibo'] = 'weibo';
    return $icons;
    }
    

    This is really frustrating

    in reply to: Having trouble using a different social icon #645984

    Hi Mike and Andy,

    I have tried both ways and still not working :(

    The Sine weibo icon is already part of the default icon used in the Enfold theme, so I used the same font type “entypo-fontello” , and the icon code is ue92b

    What do you mean by “most of the times is ue800? i thought each icon code is unique to the font type?

    I’m making the changes in functions.php that resides inside the enfold theme. (Enfold: Theme Functions (functions.php). Is this the right one?
    I see another php file called functions-enfold.php. I suppose its not this one right?

    Mike, if you can find the solution please let me know. Thanks much!

    Natalie

    in reply to: Having trouble using a different social icon #643859

    Hi Mike,

    I tried other icons (ie: spotify) and it doesn’t show either. I even asked my programmer friend and she doesn’t have a clue why it isn’t showing up.

    Hope you can find the solution Mike!

    Thanks,
    Natalie

    in reply to: Having trouble using a different social icon #643780

    Hi Andy,

    Yes, that’s the code I copy and pasted and changed the icon name and code to Sina-weibo, but it doesn’t work

    Also, whenever I add the code into the functions.php file, the site goes down and my programmer friend said “redeclare avia_add_custom_icon() to cause the issue”

    Can anyone help me add the sina-weibo icon in the social profile dropdown box so that I can add weibo as an option in the social share widget please?

    in reply to: Having trouble using a different social icon #643234

    OK,

    Link to my website, login credentials, FTP credentials are provided here as private content.

    Thanks for helping out

    Natalie

Viewing 7 posts - 1 through 7 (of 7 total)