Okay
  Public Ticket #2759404
Video Thumbnail
Closed

Comments

  • edjunaidi started the conversation

    Hi,

    May I know if it is possible to change the slider and carousel with video instead of static featured image? This is particularly on Home Page.

    I noticed that the video thumbnail can be done when installing Featured Video Plus plugin, but it only works with the Latest Post part.

    Could you kindly advise which part of the theme files that I can insert 

    <?php echo get_the_post_video( $post_id, $size ); ?>

     to enable Featured Video?

    Thanks for your kind assistance.

  •  213
    Ali replied

    Hello, you seem to have done it?

  • edjunaidi replied

    Thank you for your reply.

    Your screenshot is the Latest post. And it works beautifully.

    What I wanted to do was to change the featured image on the slider and carousel with video.

    But nevermind. I have done it. Although I had to alter your theme codes to use the_post_thumbnail() instead.

    I changed this line:

    <img class="dark-mark-hover" src="<?php echo esc_attr($imgUrl);?>" alt="<?php the_title();?>" />

    to this line:

    <?php the_post_thumbnail(); ?>

    in the featured-slider_1.php.

    <div class="post-thumb">
    <a href="<?php the_permalink();?>" title="<?php the_title();?>">
    <?php /* <img class="dark-mark-hover" src="<?php echo esc_attr($imgUrl);?>" alt="<?php the_title();?>" /> */ ?><?php the_post_thumbnail(); ?>
    </a>
    </div>

    I'm afraid I would have to do this all over again if your theme is doing the update in the future.