Hi @mmdtarek,
Add the code below to the functions.php of your child theme.
Replace the image src by the full URL of the image you want to use. If necessary to target with CSS use the class ‘my-close-image’
add_filter( 'mm_close_button_filter', 'my_custom_close_button' );
function my_custom_close_button(){
return '<img class="my-close-image" src="mycloseimageurl.jpg">';
}
Hope it helps.
also i want to add html code to add image and button under my menu how can i do that
You can use the widgetized areas for that. Go to Appearance-> Wigets and add content to the Left Menu Bottom or Right Menu Bottom.
Hope it helps. Did my previous suggestion worked? You didn’t made any comments on that.
yeah it works thank you very much but the image is not doing its function to close when i click on the image
I forgot one thing. To add the class mob-cancel-button
Repace this code
<img class="my-close-image" src="https://minava.com/wp-content/uploads/2021/12/[email protected]">
By this one
<img class="mob-cancel-button my-close-image" src="https://minava.com/wp-content/uploads/2021/12/[email protected]">
Clear the cache and test again. Let me know if it worked.
Will close the topic for now. Let me know if necessary.