Tagged: child theme, icon, mobile menu
Hey guys,
I’m trying to change the icon for the mobile menu. I use a child theme so I took this code snippet and placed it in the child theme functions.php:
<?php
add_filter('avf_default_icons','avia_replace_standard_icon', 10, 1);
function avia_replace_standard_icon($icons)
{
$icons['mobile_menu'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue811');
return $icons;
}
It does not work and I don’t why. Seems correct to me…
Any ideas?
Thank you very much,
Martin
Hi Martin!
please refer to this post: https://kriesi.at/support/topic/changing-mobile-menu-icons-using-entypo-fontello/
Cheers!
Andy
Hi Andy,
I read that post. But I don’t want to do this every time a new update comes out.
Is there no way to do this in the functions.php of my child theme?
Thanks,
Martin
Hi!
I tested your code out on my XAMPP setup with a child theme and it’s working fine. It switches the mobile icon to three solid lines instead of dots and lines.
Which version of the theme are you using? If it’s not 3.0.4 then be sure to update to the latest version and then try downloading our child theme here, http://kriesi.at/documentation/enfold/downloads/, and add your code to the bottom of the functions.php file.
Best regards,
Elliott