• James

    (@james-feaver)


    Hi Fabio,

    On pages where I have YouTube videos embedded, I wanted to improve the design when a site visitor has rejected marketing cookies. At the moment, my site shows a big gap, a YouTube icon, a message “This content is blocked because YouTube cookies have not been accepted.” and a small “Accept cookies button” (https://prnt.sc/9p3XcErjdrQ-). Looking carefully, there is a better design but it only appears for a moment before disappearing (https://prnt.sc/ixSd-OCoj8PS). I have removed my child theme style.css to check it is not anything I am doing, plus deactivated all plugins except yours (and WooCommerce and Wordfence) and also swapped to the Twenty Twenty-Five theme and the behaviour is consistent.

    Thanks,

    James

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

Viewing 1 replies (of 1 total)
  • Plugin Author fabiodalez

    (@fabiodalez)

    Hi James, must be your lucky day, because I was literally working on this exact thing when your message came in.

    First off, thank you for the report. Stripping the child theme CSS, disabling the other plugins and switching to Twenty Twenty-Five before writing in saved me a lot of guessing and pointed straight at the cause, so I really appreciate it.

    You diagnosed it perfectly: the nicer design you saw flash for a moment was the real placeholder, and then it collapsed into the bare box with the small button. The placeholder’s styling was being shipped inside the same little style block that the consent script removes once the banner finishes loading, so the instant the script ran it took the placeholder’s styling away with it. The card itself was always there, it just lost its look a fraction of a second after the page loaded, which is exactly the flash you noticed.

    I have fixed it so the placeholder keeps its styling for good now, and while I was in there I gave it a proper refresh too: a clean card with the provider’s own play button and brand colour (the YouTube red button, blue for Vimeo, and so on), a clear message and an Accept button. No third party is contacted before consent, so it stays privacy friendly.

    A new version with the fix is going out tomorrow. Once it lands, please update the plugin, hard refresh the page (or clear any caching) and you should see the tidy placeholder staying put. If anything still looks off on your end, just reply here and I will take another look.

    Thanks again for the great report and for using the plugin.

    Best,
    Fabio

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.