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

    Okay, I have spent hours trying to figure out what I am doing wrong.

    I figured out how to add social profiles, I have them appear in the social bar with the others.

    My issue is the yelp logo is not showing up. The space is there for it, you can click on it and it functions like it should.

    This is what I have done so far:

    Placed in functions.php:

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons[‘yelp’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue800’);
    $icons[‘foursquare’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue801’);
    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[‘Yelp’] = ‘yelp’;
    $icons[‘Foursquare’] = ‘foursquare’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    Downloaded icons from http://fontello.com/ and installed in the theme using the import Iconfont Manager.

    Went to social profiles and selected Yelp and input the url.

    Thank you for your help.

    Side note:

    I added

    #top #wrap_all .av-social-link-yelp a{background-color:#B4282E; color:#ffffff; }

    Because I want the backgrounds to remain solid with the inner logo being white.

    #609937

    Hi!

    Mind posting temporary admin logins here privately so we can look into it? :)

    Cheers!
    Yigit

    #609940

    Sure thing, thank you.

    • This reply was modified 8 years, 5 months ago by Micheal0424.
    #609943

    Hi!

    Font names were not matching the ones you have in Enfold theme options > Import & Export. I changed the code to following one

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['yelp']	 = array( 'font' =>'yelp', 'icon' => 'ue800');
    	$icons['foursquare']	 = array( 'font' =>'foursquare', 'icon' => 'ue801');
    	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['Yelp'] = 'yelp';
    	$icons['Foursquare'] = 'foursquare';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    please review your website now

    Cheers!
    Yigit

    #609946

    Thank you!!

    I think I see exactly where I messed up after comparing what you did to what I had that was’nt working.

    Thanks again!!

    #609947

    Hey!

    No worries at all :) Let us know if you have any other questions or issues!

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Adding Social Profiles’ is closed to new replies.