• Resolved Stiftung für Konsumentenschutz

    (@konsumentenschutz)


    Hi !
    After using Embed Privacy for more than a year, we’ve stumbled upon the first issue I couldn’t solve yet.
    We’re embedding the opt-out shortcode below all embedded YouTube videos and for the longest time this has worked just fine. The shortcode we’ve been using for months now is:

    [embed_privacy_opt_out headline="" subline="Mit dem Entfernen des H?kchens widerrufen Sie Ihre Einwilligung zum automatischen Laden der gew?hlten Inhalte." show_all="0"]

    Initially, we didn’t include show_all=”0″, which only became necessary a few months ago. That fixed the issue that was displaying the whole provider list after a visitor consented to YouTube.

    Basically, we have the same problem again, except now the whole provider list is shown even when no consent was given, across the site (e.g. privacy statement /datenschutz/#youtube-opt-out without a YouTube link, where the spacing is now also weirdly overlapping). Opting in via the shown provider list does not work, opting out after consenting via YouTube dialogue does work. Whether the cookie was set or not does not change the amount of providers in the list (but does affect the checkmark).

    We use the classic WordPress Editor plugin and a bunch of other WordPress plugins, including WP Rocket (where the Embed Privacy .css is within the safe list and JavaScript detection is activated).

    VERSIONS: PHP 8.2, WordPress 6.6.2, Classic Editor 1.6.4, Embed Privacy 1.10.4, WP Rocket 3.17.0.1
    ISSUE PERSISTS ON: Google Chrome 129.0.6668.59, Firefox 128.2.0esr, Safari 18.0 (iOS)

    We’d be very grateful for any ideas or solutions on this issue.

    Thanks a lot in advance
    Lucien @ Konsumentenschutz

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matthias Kittsteiner

    (@kittmedia)

    Hi Lucien,

    it seems to me that the CSS of Embed Privacy doesn’t properly load on this page, even though it is on the safe list. Some parts are loaded, but e.g. there is a selector for .embed-privacy-provider.is-hidden, which does only apply to an element after the JavaScript of the shortcode has been processed. It seems to me, that WP Rocket removes it before since it’s not part of the source code without JavaScript. Thus, the labels and the checkboxes are not hidden as they should be.

    Maybe, there is an additional setting in WP Rocket to leave the CSS file completely untouched?

    Best regards,
    Matthias

    Thread Starter Stiftung für Konsumentenschutz

    (@konsumentenschutz)

    Hi Matthias

    Thank you so much for your quick and helpful answer.
    I have since went through all possible WP Rocket settings to no avail. As my frustration increased, I decided to completely shut off CSS optimization in WP Rocket and delete the whole cache. That paid off, since it revealed, that the issue persisted even with WP Rocket completely shut down.

    This is a happy end story though, as after that I decided to play around with the settings in Embed Privacy. As it turns out, as soon as I deactivated the “JavaScript detection”, the checkboxes disappeared. I honestly cannot explain this, maybe (pure speculation!) it needs to be deactivated if JavaScript optimization is deactivated in WP Rocket. It wouldn’t explain how this happened lately, when I’ve already deactivated it months ago, though.

    I sadly lack the technical knowledge to dig deeper into this, so I’ll leave it at that. For us, Embed Privacy works as intended again.

    Thank you so much for your work and have a great week
    Lucien

    Plugin Author Matthias Kittsteiner

    (@kittmedia)

    Hi Lucien,

    thank you for the notice, especially regarding the JavaScript option in Embed Privacy. This way, I could reproduce the issue and will fix it in the upcoming release! ??

    Best regards,
    Matthias

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.