What’s the best way to embed html content from another site onto wix, between the header and footer sections of the page (so the main content area) while avoiding scroll bars and allowing in page links to work.
So either the right way to adjust the height of the iframe based on the content …
OR is there another way (like link rel=import) to get the content and display it properly?
OR maybe something with Dynamic pages and code with the HTML imported into the database?
What are the best practices/hacks on wix?
THANKS!
Ken
1 Like
You can’t embed HTML in a Wix Code page. You might want to consider using an HtmlComponent . You can implement functionality by sending messages between the page and the code embedded in the HtmlComponent. For more information, see the article Working with the HTML Component in Wix Code .
Thanks. That seems promising. My HtmlComponent would send a message and the page function could adjust things when it receives the message. Any hints at figuring out which elements to adjust? When I inspect the HTML element on the page now, there re alayers of divs and iframes and bears, oh my. Ok, not bears. But hard to tell which heights have to be adjusted to fit the iframe content with no scroll bars and not break anything else! There’s always trial and error 
Sorry, but the adding of code to an HtmlComponent is not a part of the Wix Code product (which is what this forum is about).
The basics of an HtmlComponent is to put any HTML code in it. That code can be copied from Facebook, Google, or anywhere else. So, that means you’re in charge. You might be able to find an on-line HTML playground to help you dig into the HTML code.
Seriously need this feature added to wix. Crazy you cant resize embedded links with the page.
2 Likes