We have the requirement to make a trimmed back version of the website, for use for other websites to embed via an iframe. For instance, there will be no left navigation, no global navigation, and all elements will be re-flowed to fit in a smaller width.
I would like to do this with a separate theme (more than likely the iframed theme would be a sub theme of the main site theme).
What is the best way to ensure the site loads the alternative theme when it has been embedded (and switch back to the main theme when it is not)?
A thought I had:
- Use a different sub-domain e.g.
www.example.com
andiframe.example.com
I am after what you think the best way to solve this would be