Tagged: Yelp
-
AuthorPosts
-
August 14, 2017 at 9:45 pm #838966
Hello,
Please see http://lgtconline.com/. If you hover just the the right of the facebook icon in the header and footer you will notice that the area turns red for the yelp icon. However, the yelp icon does not appear. I have downloaded the yelp icon off http://fontello.com/ and imported it via the Import / Export Iconfont Manager. I have added the following to the child’s function.php:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘yelp’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue800’);
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’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);I have this in my custom CSS:
/*Add Yelp Social Icon:*/
#socket .av-social-link-yelp a {
color: #9b7820;
}
#top #wrap_all .av-social-link-yelp:hover a {
color: #ffffff;
background: #d32323;
}August 14, 2017 at 10:37 pm #838978Hey Perry,
Try the following in functions.php instead:
// Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['yelp'] = array( 'font' =>'fontello', 'icon' => 'uf1e9'); 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'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Best regards,
Jordan ShannonAugust 15, 2017 at 4:34 am #839050That did not work. Please advise.
Thanks for the help! – Perry
August 15, 2017 at 6:03 pm #839477Hello, Perry!
Sorry about that. You were close the first time. It’s just that
'font' =>'fontello'
had to be'font' =>'yelp'
because that is the name you gave the font when you downloaded it.I have taken the liberty of updating your functions.php. The icon now appears correctly!
This is the correct code for your functions.php:
// Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['yelp'] = array( 'font' =>'yelp', 'icon' => 'ue800'); 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'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Best regards,
SarahAugust 18, 2017 at 12:52 am #840678You rock, Sarah and thanks for your help Jordan! All looks good.
August 18, 2017 at 1:07 am #840679Hi,
I’m glad you were able to get this corrected. If you need additional help, please let us know herein the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Yelp Icon not appearing in header and footer but the hover colors are there’ is closed to new replies.