on a similar note following this snippet I’ve added
add_filter('fp_img_src' , 'set_video_for_fp_background' , 10 , 3);
function set_video_for_fp_background( $original_img, $fp_single_id , $featured_page_id ) {
if ( 'one' != $fp_single_id )
return $original_img ;
return sprintf('<iframe style="max-width:none;position: absolute;left: -86px;" width="445" height="250" src="//www.youtube.com/embed/csTNGT6Ms9o" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>');
}
to my child theme functions.php
the Video shows but when you click on it it just takes me to the Page that is featured. What needs to happen is that it just plays on desktop in the same frame or on mobile in full screen without navigating away from the page.
Can someone have a look and make recommendations please?