Comments edjunaidi started the conversationApril 24, 2021 at 7:36amHi,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. 213Ali repliedApril 26, 2021 at 3:46amHello, you seem to have done it?edjunaidi repliedJune 8, 2021 at 3:34amThank 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. Sign in to reply ...
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
to enable Featured Video?
Thanks for your kind assistance.
Hello, you seem to have done it?
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.