Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Pablo Pacheco

    (@karzin)

    Hello,
    Please take a look at this ticket. Probably it will fix your issue
    https://www.ads-software.com/support/topic/issue-with-closing-modal/

    Thread Starter ceroni

    (@ceroni)

    I tried that solution but still not working

    The plugin just work correctly in the chrome browser
    ??

    • This reply was modified 5 years, 11 months ago by ceroni.
    • This reply was modified 5 years, 11 months ago by ceroni.
    Plugin Author Pablo Pacheco

    (@karzin)

    Have you tried the @timdenty ‘s answer using the data-micromodal-close on the wp_kses_allowed_html filter?

    Thread Starter ceroni

    (@ceroni)

    Yes I tried!!

    I inserted this code line in my function.php with ‘data-micromodal-close’ attribute explicity in the array

    add_filter( ‘wp_kses_allowed_html’, function ( $html ) {
    $html[‘button’] = array(
    ‘disabled’ => true,
    ‘name’ => true,
    ‘type’ => true,
    ‘value’ => true,
    ‘aria-describedby’ => true,
    ‘aria-details’ => true,
    ‘aria-label’ => true,
    ‘aria-labelledby’ => true,
    ‘aria-hidden’ => true,
    ‘class’ => true,
    ‘id’ => true,
    ‘style’ => true,
    ‘title’ => true,
    ‘role’ => true,
    ‘data-micromodal-close’ => true,
    );
    return $html;
    } );

    is it right?

    Plugin Author Pablo Pacheco

    (@karzin)

    Please try to increase the priority, adding a large number as the second parameter.
    Example:

    add_filter( 'wp_kses_allowed_html', function ( $html ) {
    	$html['button'] = array(
    		'disabled'         => true,
    		'name'             => true,
    		'type'             => true,
    		'value'            => true,
    		'aria-describedby' => true,
    		'aria-details'     => true,
    		'aria-label'       => true,
    		'aria-labelledby'  => true,
    		'aria-hidden'      => true,
    		'class'            => true,
    		'id'               => true,
    		'style'            => true,
    		'title'            => true,
    		'role'             => true,
    		'data-micromodal-close' => true,
    	);
    	return $html;
    },9999 );
    Thread Starter ceroni

    (@ceroni)

    it’s still not working ??

    Plugin Author Pablo Pacheco

    (@karzin)

    Hum, weird.
    Can you please check your screenshot? I can’t see it.

    Can you also provide your site URL?

    Thread Starter ceroni

    (@ceroni)

    Plugin Author Pablo Pacheco

    (@karzin)

    Thanks.
    You mentioned it’s working on Chrome. What is the browser it’s not working? The close button does not appear?

    Thread Starter ceroni

    (@ceroni)

    it’s not working on Safari and Edge Browser

    The button is appear on the corner of the page, like on the screenshot ??

    Plugin Author Pablo Pacheco

    (@karzin)

    Oh! Now I got it!
    Thanks for letting me know.

    Please update it to version 1.1.3.
    It will be ready in no time

    Plugin Author Pablo Pacheco

    (@karzin)

    Please tell me if it’s working the way you expected now, after you try version 1.1.3

    Thread Starter ceroni

    (@ceroni)

    Amazing, now it’s working perfectly!!
    Tks, your plugin is the best! ??

    Plugin Author Pablo Pacheco

    (@karzin)

    Great, Thanks!

    In that case, would you leave a tiny review if you don’t mind? I would really appreciate it ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Problem with close button’ is closed to new replies.