Home › Forums › Support › change slideout exit icon This topic has 5 replies, 3 voices, and was last updated 3 years, 1 month ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts April 7, 2020 at 8:57 am #1230080 Rodrigo Hello, How can I change the slideout exit icon (X) with a custom SVG image? Thanks in advance April 7, 2020 at 5:01 pm #1230554 TomLead Developer Lead Developer Hi there, Are you using font icons or SVG icons in “Customize > General”? Let me know 🙂 April 7, 2020 at 5:53 pm #1230586 Rodrigo I’m using SVG icons. April 7, 2020 at 7:54 pm #1230639 TomLead Developer Lead Developer You could try this: add_filter( 'generate_svg_icon, function( $output, $icon ) { if ( 'pro-close' === $icon ) { $svg = 'Your SVG HTML'; } if ( $svg ) { $output = sprint( '<span class="gp-icon %1$s"> %2$s </span>', $icon, $svg ); } return $output; }, 15, 2 ); April 24, 2020 at 10:44 pm #1254493 Rodrigo I added this code and it breaks my site. What does that 15, 2 means? April 25, 2020 at 5:52 am #1254864 DavidStaff Customer Support 15 is the priority of the function, and 2 is the number of the arguments required by the filter. Where did you add the code ? And what error did it produce? Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In