-
AuthorPosts
-
April 8, 2016 at 12:45 am #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.
April 8, 2016 at 12:53 am #609937Hi!
Mind posting temporary admin logins here privately so we can look into it? :)
Cheers!
YigitApril 8, 2016 at 1:03 am #609940Sure thing, thank you.
- This reply was modified 8 years, 7 months ago by Micheal0424.
April 8, 2016 at 1:15 am #609943Hi!
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!
YigitApril 8, 2016 at 1:36 am #609946Thank 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!!
April 8, 2016 at 1:39 am #609947 -
AuthorPosts
- The topic ‘Adding Social Profiles’ is closed to new replies.