Skip Navigation

[Resolved] Resizing video embed

This support ticket is created 5 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by sergeP 5 years ago.

Assisted by: Waqar.

Author
Posts
#1379697

Hello,

I have been trying many different way to resize the videos displayed in Views and uploaded with a CRED form field embed media. I have checked many different support ticket and tried many different ways but It does not work.

Please see the bottom of this page for example on how the video are displayed :
hidden link

I tryed
With the toolset tool

[types field='video-youtube-facebook' width='100%' height='50%'][/types]

Even with Iframe code :

<iframe width="420" height="315"src=" field="[types video-youtube-facebook][/types]></iframe>

with custom css :

[types field="video-youtube-facebook" class="html5-video-player"][/types]
.html5-video-player {
  position: relative;
  padding-bottom: 56.25%; /*16:9*/
  padding-top: 30px; 
  height: 0; 
  overflow: hidden;
    width: 100%;
  height: 50%;}

I can't figure out how to do.
Thank you in advance for your much needed support.

#1379835

Hi,

Thank you for contacting us and I'd be happy to assist.

The issue seems to be that the Elementor builder's built-in styles are setting 100% width to the iframe tag, but they are not applying automatic height to it.

To fix this you can include the following custom CSS code in your website:


.elementor iframe, .elementor object, .elementor video {
    height: auto;
}

Note: To check which CSS code is applying to different page elements, you can use Google Chrome's inspect element tool, as explained in this guide:
hidden link

I hope this helps.

regards,
Waqar

#1380713

My issue is resolved now. Thank you!
Very easy indeed 🙂

Thanks for your valuable support !