Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #609954

    https://kriesi.at/support/topic/adding-social-profiles/ (this is the link to where you helped before)

    Okay, I thought I saw what I was doing wrong but apparently not.

    I tried to add more social profiles and I am having the same issue.

    I went back to the Iconfont Manager to check the names and then to the functions.php to verify the names are spelled the same.

    This is what I have now:

    // 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’);
    $icons[‘tripadvisor’] = array( ‘font’ =>’yelp’, ‘icon’ => ‘ue802’);
    $icons[‘houzz’] = array( ‘font’ =>’houzz’, ‘icon’ => ‘ue808’);
    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’;
    $icons[‘Tripadvisor’] = ‘tripadvisor’;
    $icons[‘Houzz’] = ‘houzz’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    I can’t get Houzz and Tripadvisor to work. Yelp and Foursquare are working (the ones you did).

    What am I missing?

    Where should I be looking to make sure the spelling is a match, if that is what it is?

    Thank you.

    • This topic was modified 8 years, 7 months ago by Micheal0424.
    #610584

    Hey!

    Some icon codes are wrong, change your code to:

    // 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’);
    $icons[‘tripadvisor’]	= array( ‘font’ =>’yelp’, ‘icon’ => ‘ue801’);
    $icons[‘houzz’]	= array( ‘font’ =>’houzz’, ‘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’;
    $icons[‘Tripadvisor’] = ‘tripadvisor’;
    $icons[‘Houzz’] = ‘houzz’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    Also, i’d suggest using a single font file for all these icons.

    Regards,
    Josue

    #610864

    Okay, I am still lost on what does what now.

    All of the icons show pencil icons now.

    I am not seeing what makes the code connect with the icons.

    Why are the pencil icons showing up now and how do I make the connection to the actual icons?

    Thank you.

    #611056

    Hi!

    Check it now, there were some typos in the code you pasted.

    Best regards,
    Josue

    #611602

    Yeah, that did it. Thank you.

    I just need to keep playing with it until I figure out what I did wrong and how to do it right, I am on a mission to figure this one out.

    Thanks again for the help.

    #611633

    Hi!

    Glad it’s working for you now. To find out the syntax errors may be this is a bit helpful for you http://esprima.org/demo/validate.html

    We really appreciate if you rate our theme on themeforest :)

    Thank you for using Enfold.

    Best regards,
    Vinay

    #628674

    Perfect, thank you.

    #628709

    Hi!

    Do let us know if you need anything else, as always!
    Enjoy your weekend!

    Best regards,
    Basilis

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