[Resolved] How to change 3 bar menu icon to better one?

Home Forums Support [Resolved] How to change 3 bar menu icon to better one?

Home Forums Support How to change 3 bar menu icon to better one?

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #957633
    Adam

    Hi,

    I need to change the 3 bar menu icon to a better one which is clearer, how can I do this?

    #957656
    Adam

    Like the one used on this site: https://www.saltygecko.co.uk/

    #957692
    Leo
    Staff
    Customer Support
    #958242
    Adam

    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?

    #958404
    Adam

    Is it not possible to open a support ticket here for GP Premium?

    #958485
    Leo
    Staff
    Customer Support

    Have you decided on the icon you are trying to use?

    Is it a font awesome icon?

    #959101
    Adam

    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/

    #959431
    Tom
    Lead Developer
    Lead Developer

    Are you wanting the transition effect from the 3 bars to the X, or do you just want to change the 3 bars icon?

    #960001
    Adam

    I am just looking to change the 3 bars icon

    #960370
    Tom
    Lead Developer
    Lead Developer

    It’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?

    https://design.google.com/icons/
    https://ionicons.com/

    #960430
    Adam

    the google menu icon looks ok to me, how would I implement this?

    #960666
    Tom
    Lead Developer
    Lead Developer

    The 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 🙂

    #960987
    Adam

    where should I place the code?

    #961254
    Leo
    Staff
    Customer Support
    #961859
    Adam

    I have done all of the above and nothing has changed. Any ideas?

Viewing 15 posts - 1 through 15 (of 24 total)
  • You must be logged in to reply to this topic.