How to include a YouTube video or video widget on the community home page?

We are working on redesigning our community portal and we would like to include a video widget or a YouTube video in the right panel as shown in the below screenshot.

Can someone please guide how to achieve this ?

Hi,

Since you are using the Right Sidebar Blocks component, you can do the following:

  1. Edit blocks settings
  2. Add a new item
  3. In namecustom-html
  4. In params, you add content and as value you can insert your video HTML:
<video controls preload="metadata" width="100%">
   <source src="your_link_to_the_video_here" />
</video>

For example:

image

From my dev forum:

3 Likes

Thank you for the reply, i was able to upload to insert the video with the code but the videos are not playing.

Please find the reference screenshot.

I have tried using the below snippet but the video is not playing.

<video controls preload="metadata" width="100%">
   <source src="https://www.youtube.com/watch?v=mw3gVF4U-FM" />
</video>

Can someone please help us on priority ?

Can I suggest you post in marketplace if you need help from an expert urgently?

2 Likes

What you can do is:

  1. Go to the YouTube video page
  2. Click on Share and select Embed
    image
  3. Copy the HTML content
  4. You might want to remove the width and height so it fits in the sidebar (though, you could adjust the height if you want)

Result:
image

Thank you it worked for us

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.