0

I would like to have an auto-played video on home page only. How to embed media file (mp4) uploaded on server and loads only on home page.

4
  • You could pass a is_home() condition within your homepage related files.
    – Christine Cooper
    Feb 1, 2017 at 12:37
  • in a slider? or just want to add it through html? Feb 1, 2017 at 13:00
  • @Christine - I'm learning codings myself.... My home.php file been uploaded here. where to add which code. Kindly share complete snap of the code wanted to plug.
    – Owen
    Feb 3, 2017 at 3:21
  • @ArsalanMithani - I would like to add as html code on home page only. The frontend been uploaded here and I just need to add the video (without any navigation) on the red ribbon place.
    – Owen
    Feb 3, 2017 at 3:28

1 Answer 1

0

@Owen, There are several ways to do it.

First: You can do it from Backend.

Create a page "home" and add the video from Media button and Choose this page as "Home" from Setting -> Reading --> Static Page

Second: You can create a home page template and put the video Url path in that page manually and display it.

the best way I suggest you use the plugin called "fullpagejs" in that you can create a video slide with auto-played video and map that slide to your home page. this should work very fine.

1
  • Thanks for your help. Hope the third one helps for me.... I'll try and give feedback....
    – Owen
    Feb 3, 2017 at 2:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.