Automatically making videos responsive breaks other iframes.
-
Hello, I am a developer for a web app named Inlinkz and our customers seem to encounter some issues when using our widgets with the Kale theme.
We provide a piece of code to our customers which they have to paste in their posts for our widget to work. This code simply generates an iframe in the page. In the last revision of your theme there is a change for making all embedded videos responsive. This seems to be causing issues with other iframes.
The following code:
if (jQuery('.single-content iframe, .page-content iframe').length) { kale_responsive_videos('.single-content iframe, .page-content iframe'); }
targets all iframes and from what I can tell it wraps these elements in a div with the classes ’embedded’ and ’embedded–16by9′.
Maybe you could try to target only specific iframes, based on the src probably and not all the iframes?Thank you
- This topic was modified 5 years, 2 months ago by .
- This topic was modified 5 years, 2 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Automatically making videos responsive breaks other iframes.’ is closed to new replies.