• jeffm2008

    (@jeffm2008)


    Hi. Really like the plugin. But, the audio still plays after I close the popup. When I revisit or reload the page.

    Ive tried the javascript that ive seen here

    <s cript>
    jQuery(document).on(‘spu.box_close’,function(e,id){
    if( id == 123 )
    jQuery(‘#spu-123’).remove();
    });
    </scri pt>

    But maybe I’m not doing it right?

    My id says #spu-1589 and I also have another popup #spu-1586

    how exactly would I impliment that into that javascript? Thank you!

    Any help would be appreciated.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter jeffm2008

    (@jeffm2008)

    jQuery(document).on(‘spu.box_close’,function(e,id){
    if( id == 1589 )
    jQuery(‘#spu-1589’).remove();
    });

    like this?

    I installed header and footer scripts and added the script in the header. But, the audio still plays when I revisit or reload the page.

    Plugin Author Damian

    (@timersys)

    Hi @jeffm2008,

    when you reload the page and the audio starts playing it’s probably because you have the popup on autoplay.Is that right?

    If that’s the case you won’t be able to prevent it with current version. Could you please instal dev version from here https://github.com/timersys/popups/tree/develop ?

    Thread Starter jeffm2008

    (@jeffm2008)

    I do actually have the youtube video on autoplay. You’re correct. Great! I’ll check it out now. Thanks a million!

    Thread Starter jeffm2008

    (@jeffm2008)

    Well, I installed the developer version, and it still does it. lol.
    The popup works great. Autoplays the YouTube video. Then if I reload, or navigate away and revisit the page, just the audio starts playing in the background, and no popup. I haven’t been able to get any popup plugin to not do this.

    I’m using the standard youtube embed code with auto play attached to the url.

    Theme: mesmerize (latest). WP: (latest). Woocommerce (latest)

    Weird. :/

    Plugin Author Damian

    (@timersys)

    Can you enable debug mode and share the url where you have the issue? I didn’t test the code, so could be something wrong on my end.
    Share and I will be able to check

    Thread Starter jeffm2008

    (@jeffm2008)

    Sure. It’s enabled. Is there a way I can directly message you the URL? Everytime I post a url in a wordpress forum I get smashed with SPAM from companies that “help” people with wordpress issues.

    Plugin Author Damian

    (@timersys)

    Try the contact form at timersys.com

    Thread Starter jeffm2008

    (@jeffm2008)

    doing that now. Thanks

    Thread Starter jeffm2008

    (@jeffm2008)

    sent

    Plugin Author Damian

    (@timersys)

    I updated dev version , tested locally and seems to work

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Audio still plays hen I reload/revisit page’ is closed to new replies.