-
AuthorPosts
-
May 30, 2015 at 9:25 pm #452079
Hi,
I need to add additional social icons to the drop down list in the Social Profiles Section of Enfold. Can you tell me how to do this?Thanks,
ScottMay 30, 2015 at 11:32 pm #452088I did try adding this to the functions.php but it didn’t work:
‘houzz’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue803’),
Additionally, I uploaded the fontello font for houzz via the IconManager in Enfold but that didn’t help.
Your help is much appreciated.
Thanks,
ScottMay 31, 2015 at 4:01 am #452110Hi Scott!
You need to the change the ‘font’ value to the name of the font you uploaded:
/* this will add the icon to the framework available icons */ function avia_add_custom_icon($icons) { $icons['houzz'] = array( 'font' =>'_FONT_NAME_HERE_', 'icon' => '_ICON_HERE_'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); /* this will add the newly added icon to the social profile options */ function avia_add_custom_social_icon($icons) { $icons['Houzz'] = 'houzz'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Best regards,
JosueMay 31, 2015 at 9:07 pm #452279Hi Josue,
I added your code to the functions.php file for Enfold and uploaded it to the correct folder on the server. I named the font houzz and included it in the code as per your instructions. It’s not working. Houzz does not show up in the drop down menu in the Social Profiles section of the Enfold Theme. Any suggestions?
Thanks,
Scott//add custom social icon
function avia_add_custom_icon($icons) {
$icons[‘houzz’] = array( ‘font’ =>’houzz’, ‘icon’ => ‘ue800’);
return $icons;
}
add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);/* this will add the newly added icon to the social profile options */
function avia_add_custom_social_icon($icons) {
$icons[‘Houzz’] = ‘houzz’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);May 31, 2015 at 11:56 pm #452298Hi Josue,
I found in the forums where you helped someone with the same code. It appears they gave you access to their site and you added to code to”Plugins > Edit Functions.” Not sure where in WP you added this but perhaps that’s what I’m missing here.Thanks,
ScottJune 1, 2015 at 12:50 am #452303Okay! I got it working! I didn’t have your code in the right place in the functions.php file. I placed the code below:
if(isset($avia_config[‘use_child_theme_functions_only’])) return;Now it’s working great!
Thanks for all of your great help!
ScottJune 1, 2015 at 4:34 am #452318Hey Scott,
Yes that’s the way to do it when no child theme is available, alternatively you can use this plugin to store these custom functions as a plugin (Plugins > Edit functions) separated from the theme files (this will prevent overriding when updating).
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.