Title: Loading in iframe
Last modified: September 29, 2023

---

# Loading in iframe

 *  Resolved [booth_1](https://wordpress.org/support/users/booth_1/)
 * (@booth_1)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/loading-in-iframe/)
 * Hi, I have a form which I have put in an Iframe to load elsewhere, the problem
   is that Complianze is loading, and in a broken way, within the Iframe. I was 
   hoping you might have a way for me to deactivate it solely within this Iframe?
 * Thanks for your time.
   Ty
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Floading-in-iframe%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/loading-in-iframe/#post-17092384)
 * Hi [@booth_1](https://wordpress.org/support/users/booth_1/),
 * Yes, you can do it with a filter like below to exclude the Cookie Banner if the
   embedded URL contains a certain word/parameter.
 * Save this as a **.php **file and upload it to the folder **/wp-content/mu-plugins/**
   on the site that you wish to embed in the iFrame.
 * [exclude-banner-in-iframe.php](https://gist.githubusercontent.com/jarno-vos/142d3020a8db86df68d3fbcf2e8216fb/raw/4b672d7d1c9516580b214a569cd9cc359d753650/exclude-banner-in-iframe.php)
 * After which you can embed the site where you just added the snippet, in an iFrame
   and include **?iframe **in the embedded URL to stop the Cookie Banner from appearing.
   For example:
 *     ```wp-block-code
       <iframe src="https://example.com/?iframe"></iframe>
       ```
   
 * [Here’s my example page](https://faithful-flatworm-eu3i5.instawp.xyz/sample-page/)
   with the above applied. Hope it helps!
 * Kind regards, Jarno
 *  Thread Starter [booth_1](https://wordpress.org/support/users/booth_1/)
 * (@booth_1)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/loading-in-iframe/#post-17109130)
 * Sorry just to reply, I got that to work thank you very much, in the end I realized
   though it would be easier to put the form on a page and block everything from
   there!
 * Thanks for your time.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Loading in iframe’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

## Tags

 * [iframe](https://wordpress.org/support/topic-tag/iframe/)

 * 2 replies
 * 2 participants
 * Last reply from: [booth_1](https://wordpress.org/support/users/booth_1/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/loading-in-iframe/#post-17109130)
 * Status: resolved