I'm trying to embed an external Wordpress site into my main Wordpress page (different domains).
It embeds ok, see here (main site): https://wpdev.grantdigital.net.au/marsha/townhub/
I have the ai_external.js script in the header of the remote site (bigfatweb.com/townhub).
But I cannot get the auto height resize to work at all, I've tried absolutely everything. Any assistance would be greatly appreciated. TIA.
My current shortcode is: [advanced_iframe use_shortcode_attributes_only="true" src="//bigfatweb.com/townhub" width="100%" height="100%" multi_domain_enabled="true"]
Seems measuring the outer div does not work in your case.
Please set the element to measure to "#main-theme"
and then you need to set the height of this element to "height: auto;" (is has 100% right now which does not work.)
You can do this on the advanced tab -> modify the iframe:
Content id in iframe" set this to #main-theme and below set height: auto;
Best regards, Michael
That's awesome and worked, thank you!
:).