Posted 25 October 2012 - 07:51 PM
How do I make an iframe (e.g. video, form, anything in an iframe) embed code responsive? Might there be a shortcode or php code to say "make whatever is in this area responsive"?
(Not 100% related, but a similar question)
I see pl_video at and see examples of Vimeo and YouTube. Are any other providers supported?
Posted 25 October 2012 - 10:31 PM
- You can control the size of the iframe, but the content is usually remote.
- pl_video only supports vimeo and youtube.
Posted 25 October 2012 - 10:37 PM
Are you saying I can make the iframe 300x200 but the sourced file could be 500x400 and thus only about half of it is shown and half is cut off?
Posted 25 October 2012 - 11:03 PM
Posted 25 October 2012 - 11:08 PM
Posted 26 October 2012 - 09:04 AM
If that doesn't work, I suggest you ask this question on a web design forum.
Posted 26 October 2012 - 01:39 PM
Posted 26 October 2012 - 03:18 PM
Posted 26 October 2012 - 05:55 PM
Posted 26 October 2012 - 05:59 PM
Posted 26 October 2012 - 08:13 PM
Ultimately, here's what I'm trying to do and it's not working... not really related to resizing iframes, but you can see from this code whether or not you think the iframe video embed code should be triggering fitvid functionality or not...
(Maybe @simon can help here)...
On a brand new PageLines install (no plugins enabled other than the Sections), I created a custom section with this as the code (only this section is enabled on drag-and-drop for the page template):
If I put the pl_raw version in the content box (WYSIWYG/HTML), it works great.
But if I put the pl_raw or non-pl_raw version in the section (notice I've tried both in the code), neither works.
If I try apply_filters('the_content',____) or the do_shortcode() on pl_raw, it doesn't work (nothing's displayed at all). If I do the non-pl_raw version, it displays messed up or not at all (depending on the variation of code, which you can see in the paste).
Can you please test and/or fix for me. How can I get pl_raw to work (is there a way to tell WP that this and only this should be in the_content area and to override or append to whatever's already in there) or how do I get the non-pl_raw version to work?