Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #748663

    I am having difficulty getting imported icons from fontello to work with my social icons.
    This is what I have done so far.
    1. Went to fontello.com and chose an instagram icon under font awesome.
    I gave it a custom name of myinstagram and a custom code of ufi8f and a font name of shape2
    2. Downloaded the font and then imported the font into Icon Font Manager where it showed up nicely as shape2
    3. inserted the following into the functions.php of my child theme

    add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);
    function avia_add_custom_icon($icons)
    {
    $icons[‘myinstagram’] = array( ‘font’ =>’shape2’, ‘icon’ => ‘uf18f’);
    return $icons;
    }

    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);
    function avia_add_custom_social_icon($icons)
    {
    $icons[‘MyInstagram’] = ‘myinstagram’;
    return $icons;
    }

    4. Went to the social profiles and social icon I chose MyInstagram
    5. Added the following to custom css for color styling
    #top #wrap_all .av-social-link-myinstagram:hover a{color:#a67658; background-color:#fff; }
    #top #wrap_all .av-social-link-myinstagram a{background-color:#a67658; color:#fff; }

    The icon should be to the right of YouTube at http://www.4pcfix.net/shape/ but it is blank.
    I have checked to see if the icon is available by going to a page and adding an icon and it is under shape2 with charcode of \uf18f

    #748761

    Never mind

    #749142

    Hi,

    Thanks for the feedback, I’m guessing you got it working?

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.