James Wilson
asked 10 years ago
Chris James
replied 10 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!!!

Kimberley Davies
replied 10 years ago

My business will have to look elsewhere for themes if I can’t get videos to the slide, thanks for asking this!! 🙂

1 Answers
answered 10 years ago

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:

$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:

.news-slider iframe {
    max-width: 100%;
    width: 100%;

– 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 !

Powered by DW Question & Answer Pro