Hi @tomashalo,
As the frames are loaded with JavaScript, our Cookieblocker can’t set a placeholder on the youtube frames. A possibility could be:
– Hook into the cookie blocker with a filter to replace the href
– With Javascript, set it back to the original format, after consent is given
That would stop it from being opened until consent is provided. On consent the JavaScript should run that restores the href back to the original.
Our lead developer has set this up in the below integration/MU-Plugin (upload as .PHP file to the folder /wp-content/mu-plugins).
https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/magnific-popups.php
It might require some adjusting (as we didn’t have an environment with Magnific Popup to test, at the moment).
If you make any adjustments to the code that you feel should be included in this integration, feel free to reach out to us so we can update the code on GitHub.
I hope it helps!
Kind regards,
Jarno