Viewing 3 replies - 1 through 3 (of 3 total)
  • @nikeo has come up with an awesome snippet

    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?

    Thread Starter michellewylee

    (@michellewylee)

    Sorry for the late reply. Thank you! @rdellconsulting

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add a video to homepage slider?’ is closed to new replies.