Hi, I bought Film Maker Pro and I was wondering if I can get to autoplay one of the videos on the latest trailer section
I’ve seen from the code that it’s based on the OWL CAROUSEL framework https://owlcarousel2.github.io/OwlCarousel2/demos/autoplay.html and I noticed that it has an autoplay function. Where I have to edit the code to get the video to autoplay?
I found this code in the latest trailer file:
<?php
$latest_trailer_section = get_theme_mod( 'film_maker_pro_radio_latest_trailer_enable' );
if ( 'Disable' == $latest_trailer_section ) {
return;
}
if( get_theme_mod('film_maker_pro_latest_trailer_bgcolor') ) {
$latest_trailer_backg = 'background:'.esc_attr(get_theme_mod('film_maker_pro_latest_trailer_bgcolor')).';';
}elseif( get_theme_mod('film_maker_pro_latest_trailer_bgimage') ){
$latest_trailer_backg = 'background-image:url(\''.esc_url(get_theme_mod('film_maker_pro_latest_trailer_bgimage')).'\')';
}else{
$latest_trailer_backg = '';
}
$latest_trailer_number = get_theme_mod('film_maker_pro_latest_trailer_number');
?>
<section id="latest-trailer" class="text-center" style="<?php echo esc_attr($latest_trailer_backg); ?>">
<div class="container">
<h2><?php echo esc_html(get_theme_mod('film_maker_pro_latest_trailer_heading')); ?></h2>
<p class="sub-heading"><?php echo esc_html(get_theme_mod('film_maker_pro_latest_trailer_sub_heading')); ?></p>
<div class="owl-carousel owl-theme">
<?php for($i=1; $i<=$latest_trailer_number; $i++ ) {?>
<div class="">
<div class="item-video video-<?php echo $i ?>" data-merge="2"><a>"></a></div>
<p><?php echo esc_html(get_theme_mod('film_maker_pro_our_latest_trailer_text_'.$i)); ?></p>
<div class="latest-trailer-img">
<img />" alt="" class="video-img">
</div>
</div>
<?php }?>
</div>
</div>
</section>
Does it accept the iframes from youtube?
-
This topic was modified 1 year, 10 months ago by marco s.
-
This topic was modified 1 year, 10 months ago by marco s.
-
This topic was modified 1 year, 10 months ago by marco s.