This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Iframe auto height to suite content

Resolved 3 replies premiumthemetheme-vantage
10 years ago · Last reply by Andrew Misplon 10 years ago

I have an Iframe that is to display many pages that are of varying heights.
I don’t want scrollbars as they look untidy.
I have given a height of 3000, but this is too much for some pages and again it looks untidy.
Is there any coding for ‘auto height’ that will render the height on the content?

This is the code I have used:

URL: http://www.bellewaarde1915.org.uk/blog/remember-the-fallen/

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Andrew Misplon Staff 10 years, 5 months ago

    Hi Martin

    We’re moving over into custom development territory here but we’ll do our best to advise. Here is a page discussing the challenge:

    http://stackoverflow.com/questions/9975810/make-iframe-automatically-adjust-height-according-to-the-contents-without-using

    I’m not sure it’s possible if you’re loading contents from outside your domain but you could try reading through the feedback to that comment.

    Wherever they advise adding a script your site, that can be done using: https://wordpress.org/plugins/header-and-footer-scripts/.

  2. Martin Clift 10 years, 5 months ago

    Many thanks, Andrew
    This kind of signpost is very useful and can make all the difference!

  3. Andrew Misplon Staff 10 years, 5 months ago

    For sure :)

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread