Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #552670

    Hi, I’m trying to add a bloglovin’ icon to the social media icons to put into my top bar. I found the code on your site, but I did not understand what to change.

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons[‘icon_name’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue800’);
    return $icons;
    }
    add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);

    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    $icons[‘Icon Label’] = ‘icon_name’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    The icon I found on fontello which I wanted to add called “vkontakte” the one with the “B” and a black square.

    #552696

    Hey Abosict!

    Please see here, http://kriesi.at/documentation/enfold/custom-social-icons/.

    Did you download the file from the fontello site? You need to upload that into Dashboard > Enfold > Import/Export and check to see what name you need to use. You would then replace “fontello” in the code above with the name it gives you.

    Cheers!
    Elliott

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Add social media icon’ is closed to new replies.