Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1036276

    Hi. I’m trying to add multiple social icons to the social profiles, and for some reason the icons are not showing up on the webpage. The names get added to the social profiles drop down… but when I load the website… the icons do not appear.

    Here is the code I used:

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons['spotify'] = array( 'font' =>'fontello', 'icon' => 'uf1e9');
    $icons['music'] = array( 'font' =>'fontello', 'icon' => 'uf1e9');
    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['iTunes'] = 'music';
    $icons['Spotify'] = 'spotify';
    return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    I imported the fontello zip with both icons in it.

    #1036285

    Hey,

    I updated the code to following one

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons['spotify'] = array( 'font' =>'fontello', 'icon' => 'uf1bc');
    $icons['music'] = 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['iTunes'] = 'music';
    $icons['Spotify'] = 'spotify';
    return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    Please review your website

    Regards,
    Yigit

    #1036286

    Yes they are showing up just perfectly. Thank you for the quick response Yigit! :)

    #1036292

    Hey,

    Great! You are welcome. Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

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

The topic ‘Adding multiple social icons to social profiles’ is closed to new replies.