Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #1134849

    Hey 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,
    Ismael

    #1135266

    Hi Ismael,

    Thank you very much! The issue now is that the Google icon isn’t showing…

    #1135546

    Hi,

    The google icon is showing fine on my end, how can we reproduce this problem?

    Best regards,
    Rikard

    #1135572

    Hi, never mind it’s working now. It might’ve been a caching issue. Thank you for your time! We can close this thread out.

    #1135788

    Hi,

    Great, I’m glad that it’s working again and thanks for the update. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Yelp Social Icon – Not Displaying’ is closed to new replies.