• Resolved elo8617

    (@elo8617)


    Hi,

    The cookie banner don’t block the iframe. I configured the script center to block the URL app.superhote.com but it’s not working.

    Can you help me please ?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Antonio Candela

    (@antoiub)

    Hi @elo8617,

    The Script Center URL blocker isn’t catching app.superhote.com because the Superhote iframe bypasses the standard blocking mechanism.

    The reliable solution is to wrap the iframe in a Consent Area Block, which prevents the iframe from loading at all until the user gives consent. You can follow the official guide here: https://complianz.io/gutenberg-block-consent/.

    Once you’ve wrapped the iframe in the Consent Area Block, you can fully customize the placeholder shown to visitors before consent. Here’s an example of HTML + CSS you can use:

    HTML

    <div class="cmplz-consent-block"> 
    <span class="cmplz-consent-block-title">Bookings and availability – Superhote</span>
    <p class="cmplz-consent-block-text">To view the availability calendar and make a booking, please accept Superhote cookies.</p>
    <div class="cmplz-consent-block-actions">
    <button class="cmplz-consent-block-button">Accept</button>
    <a href="/cookie-policy" class="cmplz-consent-block-link">Which cookies?</a>
    </div>
    </div>

    CSS:

    .cmplz-consent-block {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    }
    .cmplz-consent-block-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    }
    .cmplz-consent-block-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #555;
    }
    .cmplz-consent-block-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    }
    .cmplz-consent-block-button {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    }
    .cmplz-consent-block-button:hover {
    background-color: #004fa3;
    }
    .cmplz-consent-block-button:active {
    transform: scale(0.98);
    }
    .cmplz-consent-block-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    }
    .cmplz-consent-block-link:hover {
    border-bottom-color: #0066cc;
    }
    @media (max-width: 480px) {
    .cmplz-consent-block {
    margin: 1rem;
    padding: 1.5rem;
    }
    .cmplz-consent-block-title {
    font-size: 1.1rem;
    }
    }

    I tested it on my staging site and the blocking before consent works correctly. The end result should look like this: https://prnt.sc/VLkSt-sF1hDe.

    Best regards,
    Antonio

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.