Remove Header and Footer in iframe
You could detect the $_SERVER[‘HTTP_REFERER’] variable to detect whether the page is requested from an external server. If so, then you should load an alternative header and footer using get_header() and get_footer(). You’ll need those calls to make sure all scripts and stylesheets are loaded, but you can remove the other content that make up … Read more