-
AuthorPosts
-
January 25, 2018 at 10:08 pm #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
January 29, 2018 at 12:13 pm #904217Hey 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,
BasilisJanuary 29, 2018 at 8:18 pm #904403Ahoy,
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);
January 30, 2018 at 9:54 pm #905168Hi,
can we get access to your web site?
Best regards,
BasilisJanuary 31, 2018 at 12:45 am #905261Sure,
See Private. The added code is being added using the snippets plugin.
January 31, 2018 at 8:46 pm #905795Hi,
Can you please paste the code to functions.php please instead?
Best regards,
BasilisJanuary 31, 2018 at 8:56 pm #905803Ahoy,
I went ahead and added the code but the old icon is still showing up.
February 1, 2018 at 9:11 pm #906463Hi,
The folder you are adding it is wrong.
Please go to/wp-content/themes/enfold/functions.php
Best regards,
BasilisFebruary 1, 2018 at 9:32 pm #906476I added it to this file. See screenshot.
If I remove it now I get an error.
February 3, 2018 at 11:17 pm #907297Hi,
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,
BasilisFebruary 5, 2018 at 7:50 pm #908163Hmm,
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.
February 6, 2018 at 7:54 pm #908749Hi,
You simple can use the same thing, to replace the font with a different logo.
Best regards,
BasilisFebruary 6, 2018 at 9:36 pm #908825Ok. 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'); }
February 7, 2018 at 1:47 pm #909137Hi,
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,
IsmaelFebruary 7, 2018 at 8:43 pm #909383Thanks @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?
February 8, 2018 at 2:29 am #909516Hi!
Thank you for the update. Just copy the “avf_default_icons” filter without line 19.
Regards,
IsmaelFebruary 9, 2018 at 12:12 am #910059Thanks!
February 9, 2018 at 6:18 am #910129 -
AuthorPosts
- You must be logged in to reply to this topic.