Hi all…
I read a thread here regarding adding Yelp to the social profiles… and I did exactly what was in the thread… but for some reason when I click on the Social Profiles tab and add a new social line… Yelp is still not showing up in the dropdown menu.
Here is a link of the things I followed:
https://kriesi.at/support/topic/enfold-yelp-social-profiles-icon/
Again… adding the following to functions.php after the required line and then importing the font icon did not work:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘yelp’] = array( ‘font’ =>’yelp-icon’, ‘icon’ => ‘uf1e9’);
return $icons;
}
add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);
// Add new icon as an option for social icons
function avia_add_custom_social_icon($icons) {
$icons[‘Yelp’] = ‘yelp’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);
Anyone?
Hi,
I tried to update your code in Appearance > Editor but it did not work. Could you please replace your code with following one
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['yelp'] = array( 'font' =>'fontello', 'icon' => 'uf1e9');
return $icons;
}
add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
// Add new icon as an option for social icons
function avia_add_custom_social_icon($icons) {
$icons['Yelp'] = 'yelp';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Best regards,
Yigit
That did it. Thank you for your help!
Hi,
You are welcome! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Best regards,
Yigit