[Resolved] Replace slide-out exit SVG icon

Home Forums Support [Resolved] Replace slide-out exit SVG icon

Home Forums Support Replace slide-out exit SVG icon

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1565171
    Manuel

    Hi there,

    how can I replace the slide-out exit SVG icon similar to https://generatepress.com/forums/topic/how-to-change-3-bar-menu-icon-to-better-one/#post-960666 ?

    Thanks
    Dominik

    #1565231
    Elvin
    Staff
    Customer Support

    Hi,

    You can try this PHP snippet

    add_filter( 'generate_svg_icon', function( $output, $icon ) {
        if ( 'pro-close' === $icon ) {
            $output = 'YOUR ICON HERE, either <svg> or <img>';
        }
    
        return $output;
    }, 10, 2 );

    A wise man once said:
    "Have you cleared your cache?"

    #1565325
    Manuel

    Hi Elvin,

    THANKS! ๐Ÿ˜€
    Dominik

    #1565351
    Elvin
    Staff
    Customer Support

    No problem. ๐Ÿ™‚

    A wise man once said:
    "Have you cleared your cache?"

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