Difference between revisions of "Iframe Resizing"
|Line 10:||Line 10:|
== Beds24.com ==
== Beds24.com ==
Add the following to the menu
Add the following to the menu > > Insert in HTML head
Revision as of 12:15, 11 March 2016
This page explains how to use the iFrame Resizer
Requires: Ability to upload a file and add code to the html of your web site
This is a third party code project which can be installed on your booking page and your web site to automatically resize the booking page iframe so it shows without using scroll bars.
Beds24 can not support or answer questions about this code, for support please refer to the developer site: https://github.com/davidjbradshaw/iframe-resizer
Add the following to the menu SETTINGS -> BOOKING PAGE -> DEVELOPER "Insert in HTML head"
If you want to use a more recent version, you can host the file externally and include it with a full URL, make sure to use https:// to avoid insecure content warnings.
3 Your web page
Refer to the developers web site for a full set of options, instructions and problem solving.
Obtain the file iframeResizer.min.js and copy it to your web server.
Make sure to use the same version number as the iframeResizer.contentWindow.min.js which has been included on the booking page. (in this example 3.5.3)
The file can be downloaded from the developer site or from https://beds24.com/include/iframeresizer/3.5.3/iframeResizer.min.js
Remove any height parameter from your iframe and add the script after the iframe, if necessary change the src path to the location of your iframeResizer.min.js file.
If you prefer, you can set a fixed iframe width in pixels rather than a percentage.