Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1136053

    I’m using this script to create a modal out of a div, and it works perfectly but when I close the modal while the video is still playing, the video doesn’t stop.
    What am I doing wrong?

    		function inline_popup_enabler() {
    		(function($){ $(window).load(function() {
    					items: {
    						src: $('#videooverlay'),
    					midClick: true,
    					preloader: true,
    					modal: true
    	add_action('wp_footer', 'inline_popup_enabler');

    Thanks in advance!

    • This topic was modified 8 months, 2 weeks ago by  midfieldco.

    Hey midfieldco,

    Thank you for the inquiry.

    You should be able to pause the video when the lightbox closed.


    Add it inside the close callback.


    Best regards,

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.