Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialelliot stiller
283 PointsThe approach of using Iframes
I would sincerely appreciate professional advices on this question.
I do social media for a real estate agent, and am deciding between 1) Creating a separate webpage that people go to, from Facebook, to look at a property. 2) Creating and them embedding this separate webpage on our main site.
What are the negative sideaffects of having a website embedded as full-width Iframe, in another website? Please consider the qualities of the website that would be embedded-- it would only have one page, consisting of a video, several forms, images and text.
It might also be important to know that the website that will host this embed was not built with a theme; it was built from scratch.
Please let me know :)
RJ Mey
3,034 PointsRJ Mey
3,034 PointsIframes have been frowned upon for a while and I was originally going to give you a sternly worded lecture about them.
Then I googled it, and it turns out that most of the things I know about them are out of date.
The main reasons against using them used to be that they were bad for SEO and they were hard to style properly for mobile. Both of those issues have been pretty much resolved.
This is a great article that outlines most of the problems that people have had with them in the past. It does have an update that explains that iFrames are not bad for SEO anymore.
This is another article that explains how to keep them responsive.
If I was in your position I'd try to mock up a quick and dirty version of what you're talking about just to see how it looks on mobile. Whether the site was custom built or uses a theme isn't really the question, the issue is will the site be usable on mobile and tablets?
The biggest disadvantage that I can think of is it might make your analytics much more complicated. If you want to know what visits are from Facebook and which are from the regular site you might have to play around with it a little. You'll need to use cross domain tracking if the sites are on different domains..