Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Vongries

    (@davidvongries)

    Hey @dimitris212,

    please try to add this code to your functions.php

    add_action('wp_head', 'ryv_popup_trigger_on_load');
    function ryv_popup_trigger_on_load() { ?>
    
    	<script type="text/javascript">
    
    		(function($) {
    
    			$(window).load(function() {
    
    					var url = $('.ryv-popup-video').attr('data-ryv-popup-url');
    					$('.ryv-popup-wrapper, .ryv-popup-video').fadeIn(200);
    					$(".ryv-popup-video").attr("src", url);
    					$(window).trigger('resize');
    
    				});
    
    		})( jQuery );
    
    	</script>
    <?php }
    Thread Starter dimitris212

    (@dimitris212)

    Thank you very much!
    It works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Video pop up onload home page’ is closed to new replies.