1 Answers
Hi guys, Thanks for raising this issue up. At the moment, our DW Focus theme does not yet support to display the Video instead Feature Image on Homepage.
But you can open the dw-focus-slider.php file find the line 71 then add the following code:
<?php
$feature_video = get_post_meta( get_the_ID(), 'feature_video' );
$feature_video = $feature_video[0];
if ( ! empty($feature_video) ):
echo wp_oembed_get( $feature_video );
else :
?>
And add the following code in the line 131
<?php endif ?>
After adding the codes to the dw-focus-slider.php file, You can log in to Dashboard > Theme > Customize > Custom Code, add the following code to the Header Code:
 <style>
.news-slider iframe {
   max-width: 100%;
   width: 100%;
}
</style>
– Next, open the Post > Add new, in the Customs Fields under Content frame, You can do as following:Â
+ Click add new
– Name : feature_video
– Value: add your link video
See the screenshot:
Hope this helps !
Please login or Register to submit your answer
replied 11 years ago
I too am stuck with this problem. It would be great to add a video in the news slider instead of a picture all the time!!!
replied 11 years ago
My business will have to look elsewhere for themes if I can’t get videos to the slide, thanks for asking this!! 🙂