Responsive iframe with video player in Home page

Posted in: Newspaper
Post count: 5

Hi,

I am trying to embed a self-hosted video on my home page, but no matter what I try it isn’t responsive. The size is fixed. So when the browser gets smaller it just crops the video.

I found some custom CSS that I made a class of and used on the page but that didn’t work either.

Can someone please point me to the right direction to accomplish this?

Thank you !

Post count: 27744

Hello,

Please let me know how you add the video. Please provide the link to your website.

Thank you!

Post count: 5

Hi,

I am trying to use self-hosted video. I managed to get it working a bit better by using Vimeo which seems to adapt it’s size. However, self-hosted behaves differently and just stays the same size, regardless of browser size.
The website is https://nzcretanwomen.kpl.nz/ and I’m trying to do this on the home page.

Thank you!

Post count: 27744

Hello,

I don’t see your self video, only youtube and Vimeo -> https://i.imgur.com/blopBDX.jpg
Please set the video and after let me know where you set.

Thank you!

Post count: 5

Hi,

Yes I had it in Vimeo, where it resized. I have now changed it to the same video, but self-hosted. As you will see the frame is now not responsive.

Post count: 27744

Hello,

Please use this custom code css
.td_block_video_embed video
{
width: 100%;
}

Set the code in Theme Panel -> Custom Code -> Custom CSS.
Thank you!

Post count: 5

That fixed it!

Thank you very much!!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.