Notifications
Clear all

Auto Resize Trouble

4 Posts
2 Users
0 Reactions
606 Views
Posts: 2
Topic starter
(@mrmagoo)
New Member
Joined: 4 years ago

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"]

3 Replies
TinyWebGallery
Posts: 924
Admin
(@admin)
Prominent Member
Joined: 16 years ago

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

 

Reply
Posts: 2
Topic starter
(@mrmagoo)
New Member
Joined: 4 years ago

That's awesome and worked, thank you!

Reply
TinyWebGallery
Posts: 924
Admin
(@admin)
Prominent Member
Joined: 16 years ago

:).

Reply