Tagged: social icon, Yelp
-
AuthorPosts
-
September 3, 2019 at 8:37 pm #1133539
Hi, I have the Yelp Fontello social icon imported and setup on my site. It’s been working fine until this morning when I added an additional icon for Google. It now doesn’t display despite having the code to force it to show.
This is the code that I have in the child theme functions.php file:
// Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['yelp'] = array( 'font' =>'fontello', 'icon' => 'UE800'); $icons['google'] = array( 'font' =>'fontello', 'icon' => 'UF1A0'); 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['google'] = 'google'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
And this is the CSS styling I have added in:
/*Force Yelp Icon to Show*/ #top #wrap_all .social_bookmarks .social_bookmarks_yelp a:before { font-family: 'fontello' !important; content: '\E800' !important; } /*Yelp Icon Header Color*/ #top #wrap_all .av-social-link-yelp:hover a { background-color: red; color: white; }
Please let me know what you think the issue is. The links work in the header and footer, the icon does not display however.
September 6, 2019 at 9:50 am #1134849Hey sjahan,
Thank you for the update.
We adjusted the character code of the yelp icon a bit and removed the css code.
$icons['yelp'] = array( 'font' =>'fontello', 'icon' => 'uf1e9'); $icons['google'] = array( 'font' =>'fontello', 'icon' => 'uf1a0');
Best regards,
IsmaelSeptember 7, 2019 at 8:23 am #1135266Hi Ismael,
Thank you very much! The issue now is that the Google icon isn’t showing…
September 8, 2019 at 4:02 am #1135546Hi,
The google icon is showing fine on my end, how can we reproduce this problem?
Best regards,
RikardSeptember 8, 2019 at 8:40 am #1135572Hi, never mind it’s working now. It might’ve been a caching issue. Thank you for your time! We can close this thread out.
September 9, 2019 at 5:18 am #1135788 -
AuthorPosts
- The topic ‘Yelp Social Icon – Not Displaying’ is closed to new replies.