Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #324023

    Hello,

    I added Yelp to the top social media icons, and it appears properly, but the hover function is not working. I tried this code but it hasn’t worked:`#top #wrap_all .av-social-link-yelp:hover a {
    background-color: #B90C04;
    color: #FFFFFF;
    }`
    Thanks for your help!

    #324341

    Hi 1lizcollins!

    Have you removed Yelp icon? I could not find it. Please try adding !important rule as following

    #top #wrap_all .av-social-link-yelp:hover a {
    background-color: #B90C04 !important;
    color: #FFFFFF !important;
    }

    Regards,
    Yigit

    #324509

    Weird! I must have overwritten my functions.pho file unknowingly :( I added the code you sent. I’m trying to get the Yelp icon to appear in the header, but it’s not.

    I’ve added the following code to functions.php`{
    $icons[‘yelp’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue802’);
    return $icons;
    }

    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);
    function avia_add_custom_social_icon($icons)
    {
    $icons[‘Yelp’] = ‘yelp’;
    return $icons;
    }`
    I downloaded the Yelp icon from Fontello, customized the name and then uploaded it. I see yelp as a social media icon and I’ve added it and a link in the header section of the theme options. But it’s not showing on the front of my site. What am I missing?

    #324515

    Hey!

    Do you mind creating a temporary admin login and post it here privately so we can look into it?

    Regards,
    Yigit

    #324607
    This reply has been marked as private.
    #325409

    Hey!

    Thank you for using Enfold.

    Please edit functions.php, find this code on line 16:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Below, add this code:

    function avia_add_custom_icon($icons) {
    	$icons['yelp']	 = array( 'font' =>'entypo-fontello', 'icon' => 'ue802');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    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);

    You can now select Yelp at the very bottom of the social icons.

    Cheers!
    Ismael

    #325627

    Hi Ismael,

    Thanks, that helped some – I can now see an icon in the header of my website. I should clarify that I have been able to see it all along in the social media selector in Theme options, it just wasn’t visible on the front end of the site.

    There are still two problems:
    1. The icons I see is not the yelp icon I’d previously installed from Fontello – instead it’s a musical note? The code you gave me uses the correct icon identifier (ue802), so I’m stumped! I tried re-downloading & installing the Yelp icon, but still no luck.
    2. The circular hover doesn’t show up on this new icon, like the other social media icons.

    Here’s the code I’m already using to try and show that hover effect:

    #top #wrap_all .av-social-link-yelp:hover a {
    background-color: #B90C04 !important;
    color: #FFFFFF !important;
    }

    Thanks so much for your help!

    #326992

    Hi!

    I would like to check the wp dashboard but this gives me a 404 loading error: http://tvhw.hawthorncreativewebdesign.com/wp-admin.php

    Cheers!
    Ismael

    #330880
    This reply has been marked as private.
    #331316

    Hi!

    I’m sorry but I don’t see any yelp icon added. Please download it again from fontello.com using the Iconfont Manager.

    Regards,
    Ismael

    #338353

    Weird! I can see it on my end in “themes->import/export”. I deleted it, re-downloaded and installed it and I still see the same musical note instead of the Yelp icon :( What am I missing? Screenshot attached.yelp fontello

    • This reply was modified 10 years, 1 month ago by 1lizcollins.
    #338854

    Hi!

    Thank you for the update.

    Can you please upload the zip file that you get from fontello.com using mediafire or dropbox? We would like to test it on our installation. There are lots of icons on fontello.com but I can’t find the yelp icon.

    Regards,
    Ismael

    #341857
    This reply has been marked as private.
    #341976

    Hi!

    The links are missing. Please check.

    Cheers!
    Ismael

    #350151
    This reply has been marked as private.
    #350153
    This reply has been marked as private.
    #351069

    Hey!

    I’m sorry but we won’t be able to access the root directory of your site because it is forbidden. Please add the font file on mediafire or dropbox. Anyway, the yelp icon from Font Awesome works fine and I think I see the problem now. Please replace the code with this:

    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    function avia_add_custom_icon($icons)
    {
    $icons['yelp']	 = array( 'font' =>'fontello', 'icon' => 'ue800');
    return $icons;
    }
    
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    function avia_add_custom_social_icon($icons)
    {
    $icons['Yelp'] = 'yelp';
    return $icons;
    }

    Make sure that you add the code below line 16:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Cheers!
    Ismael

    #351120

    Hi Ismael,

    I’d like to add this code to the child theme’s functions.php file as I will loose all customization when I update the theme otherwise. Is this possible? If so, do I just include line 16 and then this code below?

    Thx!

    #351684

    Hey!

    Yes, you can add it on the child theme’s functions.php file. Forget the line 16.

    Regards,
    Ismael

    #351937

    Added it and now no icon at all shows up! I tried changing to ue802 as this is what the yelp icon used previously, but still nothing so I’ve changed it back to ue800. I can’t understand what is going wrong. I see the yelp icon in the social profiles section, I have selected it, and it’s just not visible on the front end. I really need to get this fixed – what else can we try? Thanks so much.

    #352346

    Hey!

    This works fine on our installation. Please post the login details here and set it as a private reply. I tried to login using the link and login credentials above but it’s not working.

    Regards,
    Ismael

    #352537
    This reply has been marked as private.
    #353079

    Hi!

    Looks like you’re not using the latest version of the theme. Please download the latest version 3.0.2. Anyway, looks like you can’t add the code on the child theme. I have to add it again on the parent theme’s functions.php. It is working now: http://www.taborviewhealth.com

    Create a change log of this modification in case you update the theme.

    Best regards,
    Ismael

    #355930

    Ok, thanks so much. It would be great to be able this code to the child theme info so I don’t have to do extra work when I update the theme (just updated thanks!).

    #356129

    Hey!

    Not sure why it’s not working on the child theme. Anyway, unfortunately, for now you will have to do it every update.

    Best regards,
    Ismael

Viewing 25 posts - 1 through 25 (of 25 total)
  • The topic ‘Custom social media icon hover not working’ is closed to new replies.