- This topic has 23 replies, 2 voices, and was last updated 5 years, 7 months ago by
Tom.
-
AuthorPosts
-
July 14, 2019 at 10:07 am #957633
Adam
Hi,
I need to change the 3 bar menu icon to a better one which is clearer, how can I do this?
July 14, 2019 at 10:14 am #957656Adam
Like the one used on this site: https://www.saltygecko.co.uk/
July 14, 2019 at 11:21 am #957692Leo
StaffCustomer SupportHi there,
Would something like this help?
https://generatepress.com/forums/topic/animated-hamburger-icon
https://gist.github.com/generatepress/589b9e91bca7205883b0454f15a4dcf9July 15, 2019 at 6:45 am #958242Adam
It helped a little, I know where to change it but not sure what I should change it to? currently, this is what I have: content: “\f0c9”; and the font-family: ‘GP Premium’; I have been trying to change this for over 1 day now, it surely should be easier than this?
July 15, 2019 at 7:55 am #958404Adam
Is it not possible to open a support ticket here for GP Premium?
July 15, 2019 at 9:22 am #958485Leo
StaffCustomer SupportHave you decided on the icon you are trying to use?
Is it a font awesome icon?
July 16, 2019 at 6:01 am #959101Adam
Yes I have but I am unsure which library it comes from, the same as the one on this website: https://www.saltygecko.co.uk/
July 16, 2019 at 9:44 am #959431Tom
Lead DeveloperLead DeveloperAre you wanting the transition effect from the 3 bars to the X, or do you just want to change the 3 bars icon?
July 17, 2019 at 3:15 am #960001Adam
I am just looking to change the 3 bars icon
July 17, 2019 at 9:18 am #960370Tom
Lead DeveloperLead DeveloperIt’s difficult to replace if we use HTML (like the example you linked to). However, it’s super easy if we’re able to use an icon font or SVG image. Are there any icon fonts out there that have the toggle you’re looking for?
July 17, 2019 at 10:14 am #960430Adam
the google menu icon looks ok to me, how would I implement this?
July 17, 2019 at 4:14 pm #960666Tom
Lead DeveloperLead DeveloperThe first thing to do is turn on SVG icons in Customize > General.
Then, try this filter:
add_filter( 'generate_svg_icon', function( $output, $icon ) { if ( 'menu-bars' === $icon ) { $output = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>'; } return $output; }, 10, 2 );Let me know 🙂
July 18, 2019 at 5:35 am #960987Adam
where should I place the code?
July 18, 2019 at 8:14 am #961254Leo
StaffCustomer SupportJuly 19, 2019 at 6:21 am #961859Adam
I have done all of the above and nothing has changed. Any ideas?
-
AuthorPosts
- You must be logged in to reply to this topic.