• Resolved booth_1

    (@booth_1)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @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

    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:

    <iframe src="https://example.com/?iframe"></iframe>

    Here’s my example page with the above applied. Hope it helps!

    Kind regards, Jarno

    Thread Starter booth_1

    (@booth_1)

    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.