Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #23698

    Hello. For our header I need to insert an icon for a niche social network that’s not available in Entypo. I think I have 2 options

    a) Modify the font file and replace, say, email or RSS with my icon.

    b) Tweak some code and add the individual icon as a png.

    Are there any other options? What do recommend and where should I look for the needed files?

    Thanks

    #120815

    Any help would be greatly appreciated, is this change even possible?

    #120816

    Hi HammerbyGB,

    I’m not really sure about either option at the moment but I’ve tagged Peter and Kriesi on the topic so hopefully they can shed some light on it.

    Regards,

    Devin

    #120817

    Open up wp-contentthemesenfoldincludeshelper-social-media.php and replace:

    $html .= "<a {$blank} href='".$icon['social_icon_link']."' class='avia-font-entypo-fontello'>".$avia_config['font_icons'][$icon['social_icon']]."</a>";

    with

    if($icon['social_icon'] == 'rss'){
    $html .= "<a {$blank} href='".$icon['social_icon_link']."' class='avia-font-entypo-fontello'><img src='http://mywebsite.com/image.jpg' alt='' /></a>";
    }else{
    $html .= "<a {$blank} href='".$icon['social_icon_link']."' class='avia-font-entypo-fontello'>".$avia_config['font_icons'][$icon['social_icon']]."</a>";
    }

    and instead of http://mywebsite.com/image.jpg insert the path to your image/icon.

    #120818

    Hello Dude. My helper-social-media.php seems to be missing that line. I’m using theme version 1.3.1. I’ll update the theme and try this. Thanks

    #120819

    Hey!

    I hope it worked out?

    Best regards,

    Peter

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

The topic ‘Replacing or Adding a custom icon’ is closed to new replies.