Jump to content
TourKick (Clifford P)

Responsive Iframe Embeds

Recommended Posts

TourKick (Clifford P)    1
TourKick (Clifford P)

1.

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"?

2.

(Not 100% related, but a similar question)

I see pl_video at http://demo.pagelin.co.in/framework/tools/ and see examples of Vimeo and YouTube. Are any other providers supported?

Thank you.

Share this post


Link to post
Share on other sites
Simon    247
Simon

  1. You can control the size of the iframe, but the content is usually remote.
  2. pl_video only supports vimeo and youtube.

Share this post


Link to post
Share on other sites
TourKick (Clifford P)    1
TourKick (Clifford P)

How do I control the size of the iframe?

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?

Share this post


Link to post
Share on other sites
Simon    247
Simon

You cant control the sourced file as its remote, you can control the size of the frame, and whether to enable scrollbars.

Share this post


Link to post
Share on other sites
TourKick (Clifford P)    1
TourKick (Clifford P)

i understand. but are you talking about within the iframe's actual embed code (iframe height and width tags) or within pagelines (e.g. a shortcode or targeting a css element or something)? I just want to make sure I'm not missing something. Thanks, Simon.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

I have no idea regarding iFrames, as the technology is older than me and I have never used them. But you could try adding your iFrame within the PageLines Grid, this may make it responsive but I am unsure.

For example:


<div class="row">
<div class="span12">

Add iFrame here

</div>
</div>
[/CODE]

If that doesn't work, I suggest you ask this question on a web design forum.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
TourKick (Clifford P)    1
TourKick (Clifford P)

Great idea, but there was no difference in how it worked. I feel like we've considered this in all possible ways for the way the theme is right now so I think you can close this. But I do wish it could resize any iframe proportionately, not just cutting off the width and leaving the height. Thank you.

Share this post


Link to post
Share on other sites
catrina    103
catrina

I've tried searching around for responsive iFrame solutions but haven't found any except for jQuery solutions as shown here: http://www.jqueryrain.com/2012/09/jquery-responsive-iframes/

  • Like 1

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
catrina    103
catrina

It should be, but I'm not sure why the functionality is misbehaving on your site. Have you already tried deactivating active plugins?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
TourKick (Clifford P)    1
TourKick (Clifford P)

if fitvids is in PL, then I'm not sure if it's not acting properly. if fitvids is NOT in PL, then everything regarding iframe resizing is fine (it just covers/cuts off when resizing browser window).

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): http://paste.pagelines.com/6k2

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?

Thank you.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

The topic was marked as resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • lionel1
      By lionel1
      Hi,
      I use on my home page " impulse module " but when i look on my iPhone the image is cut and not responsive .
      i only have this problem with this module not with the other one .
      thanks for ur help
      website / www.elonakane.com 
      Lionel 
       
    • kwaoru
      By kwaoru
      Hi,
       
      I have been using DMS and pagelines.
      I am facing to a huge trouble with the appearance of one of my page on mobile (smart phones) built with pagelines.
      However I haven’t come to any solutions to organise either edit the appearance of mobile view to look neat or deactivate the responsive function. 
      Now it looks totally messy on the phone...
       
      1. Is there any way to edit the appearance of the mobile version (responsive theme)?
      2. Is there any way to deactivate responsive function?
       
      If I could receive support from you to go thorough this process I would be happy to be a pro member. 
       
      Looking forward to hearing from you.
    • Paul
      By Paul+
      I have woocommerce store, product shows title and price fine until reduce screen with on a tablet/mobile phone the price and title gets removed?  Any ideas? 
      Here's an example page: https://thelaptopfixers.com/product/operating-system-re-install/
      Try it on both desktop PC browser then resize to mobile/cell phone size!  
      Thanks
    • kwaoru
      By kwaoru
      Hi,
      I desperately need to deactivate the responsive function on mobile for reasons. It looks so messy with the responsive look on mobile and not navigating or informative at all as it is. 
      I searched for solutions online and tries some of those that I found but nothing worked out. Also I found a previous post on this forum says that this theme pagelines DMS is not meant to be build to deactivate the responsive function... 
      Also tried with widget such as WPtouch to edit the mobile look a little more informative but as I am using "single page" theme on pagelines, the frontpage(main page) never appears on those app.
      Seems like not compatible?
      If there is no way to deactivate responsive function or I'll have to recreate another page just dedicated for a mobile page? or change the theme completely and build a page from scratch?
      I have been searching for this for two days already...
      Could anyone wise and kind out there, please help me?
       
      Thanks,
    • pehja
      By pehja+
      https://pehjaproduction.se/webbdesign/  Video is not showing up in Journey section. Why? I have entered this in the settings 
       
×