-
AuthorPosts
-
April 8, 2016 at 2:34 am #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.
April 9, 2016 at 1:35 pm #610584Hey!
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,
JosueApril 10, 2016 at 11:11 pm #610864Okay, 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.
April 11, 2016 at 9:13 am #611056Hi!
Check it now, there were some typos in the code you pasted.
Best regards,
JosueApril 12, 2016 at 3:30 am #611602Yeah, 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.
April 12, 2016 at 5:39 am #611633Hi!
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,
VinayMay 7, 2016 at 8:18 pm #628674Perfect, thank you.
May 7, 2016 at 10:36 pm #628709Hi!
Do let us know if you need anything else, as always!
Enjoy your weekend!Best regards,
Basilis -
AuthorPosts
- The topic ‘Adding Social Profiles – Follow Up’ is closed to new replies.