td_resize_videos()

Posted in: Newspaper
Post count: 3

The theme is causing a problem for my Youtube embedded videos. It’s incorrectly trying to resize/make the video responsive (it’s a Javascript function called “td_resize_videos()” in this file: https://babygizmo.com/wp-content/themes/Newspaper/js/tagdiv_theme.min.js ).

Is there a way to fix this?

Thanks,
Lee

Post count: 20688

Hi,

Please provide a link to your website where this problem with the videos is present and more details, so we can inspect it.

Thanks

Post count: 3

https://babygizmo.com/chicco/

If you go to this page and go to the video tab. Click on any video and you will see the problem.

Thanks,

Lee

Post count: 20688

Hi,

That is not caused by the theme. There seems to be an inline height set on the iframe, overriding the default value
https://www.screencast.com/t/7cKVHXTtZy
I could not say why that height is present there, but it is not coming from the theme. Could by a plugin setting that you might use. You could override it with a code like this maybe, just for desktop (on mobile seems to be resizing properly)
https://www.screencast.com/t/Qkrila5QbKa4
Enter it in Theme panel->Custom CSS if you decide to use it

@media (min-width: 1140px) {
.lity-content iframe {
height: 500px!important;
}
}

Thanks

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