how to get an iframe to resize according to its content
-
I’m on my fifth attempt to get an iframe to resize according to its contents but coming up short every time. Does anyone have a working solution for this?
Currently working with https://iframe-resizer.com/ but does not seem to work any better than the other solutions I tried.
Here’s the code I’m using on the parent page:
<iframe id="myIframe" src="https://george-mainemonitor.github.io/my-reps/" style="width: 100%;height: 100vh;border:none;"></iframe>
<script src="/wp-admin/js/iframe-resizer.parent.js"></script>
<script>
iframeResize({ license: 'GPLv3', waitForLoad: true }, '#myIframe');
</script>Have triple checked this against the documentation at https://iframe-resizer.com/ and looked in my browser console but can’t seem to figure out what’s going wrong.
Appreciate any advice or help with this.
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.