Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #903051

    Ahoy,

    I noticed that the old google + logo is still on the enfold theme. I used the following threads code https://kriesi.at/support/topic/new-google-logo/ but it didn’t work. Any updates on when this will be replaced? Looks like this has been an issue for over a couple of years…

    function avia_add_custom_icon($icons) {
    	$icons['gplus']	 = array( 'font' =>'font-name-here(fontello)', 'icon' => 'font-code-here(uF0D5)');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);

    Please advise

    #904217

    Hey mcraig77,

    We have asked our developers to push an update for once here, in the mean time you code structure is wrong.
    font-name-here(fontello) here is wrong, as you need to load the font and same goes for font-code-here.

    So for example you should have something like

    function avia_add_custom_icon($icons) {
    	$icons['gplus']	 = array( 'font' =>'fontawesome', 'icon' => 'f0d5');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);

    Let us know if there is anything else we can do for you.

    Best regards,
    Basilis

    #904403

    Ahoy,

    I changed the code to this but it is still not showing up. This is on the bottom of my functions.php

    function avia_add_custom_icon($icons) {
    	$icons['gplus']	 = array( 'font' =>'fontello', 'icon' => 'F0D5');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    #905168

    Hi,

    can we get access to your web site?

    Best regards,
    Basilis

    #905261

    Sure,

    See Private. The added code is being added using the snippets plugin.

    #905795

    Hi,

    Can you please paste the code to functions.php please instead?

    Best regards,
    Basilis

    #905803

    Ahoy,

    I went ahead and added the code but the old icon is still showing up.

    #906463

    Hi,

    The folder you are adding it is wrong.
    Please go to

    /wp-content/themes/enfold/functions.php

    Best regards,
    Basilis

    #906476

    I added it to this file. See screenshot.

    If I remove it now I get an error.

    #907297

    Hi,

    not sure what you are doing wrong with the code, but I would suggest to then replace the icon, with a different icon through CSS

    Take a look at the issue, it should fix all the problems.

    Best regards,
    Basilis

    #908163

    Hmm,

    That link you gave me seems to replace a fontello icon with a custom icon – which is not what i’m trying to do. I just want the new Google + icon to be the one in the header. The font is available via fontello. I added the code but it doesn’t seem to work.

    It seems that other people have had this same issue a couple of years back https://kriesi.at/support/topic/new-google-logo/

    I referred to the post @Yigit recommended and it didn’t work before creating this thread.

    #908749

    Hi,

    You simple can use the same thing, to replace the font with a different logo.

    Best regards,
    Basilis

    #908825

    Ok. I went ahead and uploaded the image. I’m not too sure how to now replace the social google font with the url…

    I used this code from the thread you shared. It did nothing. See private for full url.

    .iconlist_icon .gplus :before {
    content: url('URL');
    }
    #909137

    Hi,

    We adjusted the code a bit and move it below line 19.

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    
    function avia_add_custom_icon($icons) {
    	$icons['gplus']	 = array( 'font' =>'gplus', 'icon' => 'uf0d5');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    

    Please create a child theme.

    // https://kriesi.at/documentation/enfold/using-a-child-theme/

    Best regards,
    Ismael

    #909383

    Thanks @ismael.

    I went ahead and created a child theme, I would just copy the /wp-content/themes/enfold/functions.php in the child root folder? Would it be the full document or just this modification?

    #909516

    Hi!

    Thank you for the update. Just copy the “avf_default_icons” filter without line 19.

    Regards,
    Ismael

    #910059

    Thanks!

    #910129

    Hi,

    Glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 18 posts - 1 through 18 (of 18 total)
  • You must be logged in to reply to this topic.