2

I want to add video in my home page.I am using my custom theme.Can i add video without any extension.

1
  • You can use any videos format that can use in web in Magento 2. Just go to Admin -> Content -> Pages, and on the homepage add your video Jun 19, 2020 at 11:21

1 Answer 1

4

Go to Admin Panel -> Content -> Pages. Select home page and in content tab click Show/hide editor. And in this place you can place <iframe> code (if you want to show for example YouTube video), or you can place

<video controls> 
  <source src=http://techslides.com/demos/sample-videos/small.webm type=video/webm> 
  <source src=http://techslides.com/demos/sample-videos/small.ogv type=video/ogg> 
  <source src=http://techslides.com/demos/sample-videos/small.mp4 type=video/mp4>
  <source src=http://techslides.com/demos/sample-videos/small.3gp type=video/3gp>
</video>   

to share video from your server or external url.
Admin Panel -> Content -> Pages -> homepage: enter image description here

Store view:
enter image description here

15
  • Thank You it works.
    – tamanna
    Jun 19, 2020 at 12:29
  • glad, i could help you! :)
    – SebastianT
    Jun 19, 2020 at 13:12
  • i have one more question if i want to add my own video then how can i add ?
    – tamanna
    Jun 19, 2020 at 13:15
  • I think you can upload your video to pub/media folder, and then in <source src=""> define your path to this video.
    – SebastianT
    Jun 19, 2020 at 13:22
  • 1
    Thanks it's work
    – tamanna
    Jun 20, 2020 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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