Hi
I’ve added an iframe to ’embed’ a page. The Iframe is 400px wide, so it’s wider then the page on mobile resolutions. The content which embedded is 400px, so I can’t make the iframe adaptable to the screen size.
Is there a way to disable responsiveness on a single page? Or so overwrite the minimum page width on a single page?
Thank you in advance!
Hi Trender!
Try adding this to a codeblock element on the page.
<style type = "text/css">
.responsive .container {
max-width: 1000px !important
}
</style>
If that’s not working then send us a link so we can get a better idea of what’s going on.
Regards,
Elliott
Hi!
I don’t see an easy way of doing that unfortunately. What I would do is instead of setting a width of 500px on the content in your iframe I would change it to 100% so it’s responsive. You can set a max-width to it as well so it looks correct on bigger screens.
Cheers!
Elliott
Hi Elliot,
Thank you for the swift reply.
I now display different content to mobile visitors (only a link in stead of an i-frame). I used this method:
https://kriesi.at/support/topic/controlling-content-on-mobile-in-the-enfold-theme/
That was also your solution, so thank you for that!