-
AuthorPosts
-
July 28, 2016 at 7:27 pm #666388
I found this tutorial here: http://kriesi.at/documentation/enfold/custom-social-icons/ to be helpful, but…
I need to add more than just one new icon. I found 2 of the icons I need on Fontello, and the other 2 icons are .png files. I’m confident I’ve set up everything correctly in the css, but the functions.php coding has me a bit flummoxed because I am not a PHP developer, just winging it here. So this is the code I have:// Add new icons as options for social icons. function avia_add_custom_social_icon($icons) { $icons['Baidu'] = 'baidu'; return $icons; $icons['Lenovo User Community'] = 'luc'; return $icons; $icons['Wechat'] = 'wechat'; return $icons; $icons['Weibo'] = 'weibo'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
But only the Baidu option is showing up in my theme options list for Social Profiles.
Screenshot
I’m guessing that’s because I don’t have my list of icons coded correctly in functions.php. Can anyone help me sort this out, please?July 28, 2016 at 8:16 pm #666401Got it. Hopefully this will help anyone else who also would like to add more than just one custom social media icon. Follow the tutorial linked above, and make your list of icons in functions.php like this (at least this is what worked for me by trial and error and guessing and hoping).
// Add new icons as options for social icons. function avia_add_custom_social_icon($icons) { $icons['Baidu'] = 'baidu'; $icons['Lenovo User Community'] = 'luc'; $icons['Wechat'] = 'wechat'; $icons['Weibo'] = 'weibo'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
This topic can be marked as resolved.
August 1, 2016 at 9:28 am #667158 -
AuthorPosts
- You must be logged in to reply to this topic.