Tagged: custom social icons
-
AuthorPosts
-
May 29, 2021 at 8:20 pm #1302972
I don’t have a child theme set up on this blog so I copied this code from the functions.php before I upgraded Enfold to 4.8.3 to insert it back into the functions.php after the upgrade:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘goodreads’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue800’);
$icons[‘feedly’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue802’);
$icons[‘bloglovin’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue804’);
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[‘Goodreads’]=’goodreads’;
$icons[‘Feedly’]=’feedly’;
$icons[‘Bloglovin’]=’bloglovin’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);The problem is that after I upgraded and after I pasted this code back in to the functions.php, the icons were no longer a choice in the Social Profiles page. I ended up rolling this blog back to 4.8.2.
Is this a bug or did I do something wrong?
- This topic was modified 3 years, 5 months ago by coreyblaser.
May 30, 2021 at 10:08 am #1303008and you definitly have a fontello icon set ? – and that has the new icons for your new definitions.
( the standard enfold fontello set is: entypo-fontello )Did you place it in your functions.php on the right place? right before that
line 844 :require_once( 'functions-enfold.php');
Did you refresh all cachings – refresh the merging of Enfold on Performance Settings ?
May 30, 2021 at 7:43 pm #1303032Yes, I have a fontello icon set with the new icons for new definitions. And, yes, I placed it in the right spot in the functions.php. Because this blog doesn’t have a child theme, I used this article: Social Share Buttons. It says to put the code right after this line:
if(isset($avia_config[‘use_child_theme_functions_only’])) return;
Yes, I have cleared all caches and refreshed Enfolds Performance Settings.
May 30, 2021 at 8:22 pm #1303033I may have solved the issue. I decided this was a good time to install a child theme on this blog. By doing so and copying the code into the child theme functions.php, the issue has been resolved.
June 1, 2021 at 4:40 am #1303300 -
AuthorPosts
- You must be logged in to reply to this topic.