Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Rui Guerreiro

    (@takanakui)

    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.

    Thread Starter mmdtarek

    (@mmdtarek)

    also i want to add html code to add image and button under my menu how can i do that

    Plugin Author Rui Guerreiro

    (@takanakui)

    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.

    Thread Starter mmdtarek

    (@mmdtarek)

    yeah it works thank you very much but the image is not doing its function to close when i click on the image

    Plugin Author Rui Guerreiro

    (@takanakui)

    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.

    Plugin Author Rui Guerreiro

    (@takanakui)

    Will close the topic for now. Let me know if necessary.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘close icon’ is closed to new replies.