Tagged: mobile site
Hi guys,
I notice the button to close the menu has a bit of a crooked “X” Not quite centered. I’d like to change that “X” button to the button used to enter the menu. So they are both the same.
I’d like to change this
https://dl.dropboxusercontent.com/u/1049926/Screen%20Shot%202014-02-17%20at%201.34.13%20PM.png
To this
https://dl.dropboxusercontent.com/u/1049926/Screen%20Shot%202014-02-17%20at%201.33.52%20PM.png
What CSS should I use for that?
Thanks, Jas
Hey Jasmer!
Please go to Appearance > Editor and open Functions-enfold.php file and find
'close' => array( 'font' =>'entypo-fontello', 'icon' => 'ue814'),
and change it to
'close' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8a5'),
Regards,
Yigit
Hi Yigit,
I’m using the Enfold Child theme so I added the below code. I already had a 10, 1 so I added a 10, 2.
Also, you mentioned functions-enfold.php. I think you meant functions.php. I did not find any of this in functions-enfold.php.
Thank you for your help! Jas
add_filter('avf_default_icons','avia_replace_close_icon', 10, 2);
function avia_replace_close_icon($icons)
{
$icons['close'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue8a5');
return $icons;
}
Hey!
Yes, sorry, i meant Functions.php file. You can add the code you have posted to functions.php file of your child theme and it should work just fine
Regards,
Yigit
Yes I added it yesterday and it works perfectly. Thank you!