-
AuthorPosts
-
September 26, 2018 at 11:38 am #1014675
Hi,
I have updated the Google+ icon in the header top bar as well as the socket, to the newer icon Google have started using.
I am trying to find a way to replace it in the social share section as well but can’t seem to find a solution.Here is the code I am currently using in my functions.php file of my child theme:
// Register new icon as a theme icon - Google Plus + New Cog + Handshake function avia_add_custom_icon($icons) { $icons['gplus-1'] = array( 'font' =>'fontello', 'icon' => 'uf0d5'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); // Add new icon as an option for social icons - Google Plus function avia_add_custom_social_icon($icons) { $icons['gplus-1'] = 'gplus-1'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Please could you kindly assist.
Thank you :)
- This topic was modified 6 years, 1 month ago by cordellbrewer.
September 26, 2018 at 7:51 pm #1014969Hey Cordell,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaSeptember 26, 2018 at 8:31 pm #1014981a realy good 1,2,3 solution :https://kriesi.at/support/topic/adding-custom-social-icons-3/#post-934964
;)The real good documentation is here and the solution too: https://kriesi.at/documentation/enfold/social-share-buttons/#gist85414748
so you can even take a coloured png file for that !
or you can take one of these: https://www.google.com/search?q=Google+Plus&client=firefox-b&source=lnms&tbm=isch&sa=X&ved=0ahUKEwi-h67lptndAhUHyaQKHT5YAB0Q_AUIDSgE&biw=1722&bih=1117
September 27, 2018 at 7:47 am #1015133Hey Victoria,
Sure. Will do.
Thanks.
September 27, 2018 at 8:27 am #1015162Hi,
I adjusted your code in the functions.php – the new icon now replaces the old icon.
Best regards,
PeterSeptember 27, 2018 at 9:11 am #1015188Hey Dude,
Awesome. That’s great :)
What adjustments did you make so I know in future?
Thanks.
September 27, 2018 at 1:39 pm #1015275Hi,
I replaced “gplus-1” with “gplus” which is the id of the Google Plus icon.
Best regards,
PeterSeptember 27, 2018 at 1:43 pm #1015276Hi Peter…um I mean Dude :P,
Okay I see now. Thanks so much for your help. I really appreciate.
You guys are awesome!You can close this topic.
-
AuthorPosts
- The topic ‘Social Share – Update Google+ Icon’ is closed to new replies.