Home › Forums › Support › How to add a custom SVG or img on sticky menu on mobile devices This topic has 1 reply, 2 voices, and was last updated 1 year, 10 months ago by Ying. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts June 7, 2022 at 7:16 am #2246048 FunkyCss Hi there, So I am using this code to add a custom image for my slideout navigation menu togle add_filter( 'generate_svg_icon', function( $output, $icon ) { if ( 'pro-menu-bars' === $icon ) { $output = '/wp-content/uploads/burgerMenu.png'; } return $output; }, 10, 2 ); And this works perfectly fine, but I need the same to add it to mobile – can you please tell me the filter name for this one ? Thank you in advance June 7, 2022 at 10:55 am #2246396 YingStaff Customer Support Hi there, Try this: add_filter( 'generate_svg_icon_element', function( $output, $icon ) { if ( 'menu-bars' === $icon ) { $output = '<svg>Your-custom-search-icon</svg>'; } return $output; }, 10, 2 ); Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In