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

    Hey, Gurus,

    I’m wondering about the adding a few more social profiles (not just additional icons as those exists into your list) but social profiles like #4, #5, so on, into my Enfold Child Theme? I know, there could be some piece of code to be added into my funtions.php, but I still don’t find one exactly. To much code about how to add lthe absent icons, but not yet of how to add the additional social profiles please. And sure, those profiles need to be shown at both header & footer respectively, same to the default 3 ones. Thank you.

    #903621

    Hey DimaP,
    To add more social profiles to your header & footer you can choose from the many built in profiles or add a new one.
    Choosing a built in profile, go to Enfold Theme Options > Social Profiles and click on the green plus syllable, then choose from the 19 in the drop down list.
    2018-01-26_212140
    If you have selected to display social icons in the header at Enfold Theme Options > Header > Extra Elements > Header Social Icons, your new social profile will show.
    2018-01-26_212443
    If you have selected to display social icons in the footer at Enfold Theme Options > Footer > Social Icons, your new social profile will show.
    2018-01-26_213237

    To add a additional social profile other than the many built in profiles, add this code to your functions.php file in Appearance > Editor right below this code:

    if(isset($avia_config['use_child_theme_functions_only'])) return;

    on line 19
    (code to add)

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['tripadvisor']	 = array( 'font' =>'tripadvisor', 'icon' => 'uf262');
    	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['Trip Advisor'] = 'tripadvisor';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    *Note in this example we will add Trip Advisor, adjust the code to suit your new social profile*

    Then import your icon at Enfold Theme Options > Import/Export > Iconfont Manager (read more about this here)
    and then follow the steps above choosing to show it, and ensuring the option is on in the header & footer.

    Best regards,
    Mike

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