Disable Header video until user consent is given
-
Hello,
I have a somewhat tricky question. WP allows for Youtube header videos and my site uses this feature within a highly customized Twenty Seventeen theme. With respect to the GDPR, I want to enable the header video only, if the user accepted the cookie notice. If not – and also, before the consent is given – I want to show the still image for the header.
I looked into the documentation, but I found no filter or something else to disable/enable the header video programmatically. In the end, a filter solution will not work anyway, since my site relies on static page caching. The solution must therefore use CSS/JS, not PHP.
Anyone here with some voodo skills around header videos?
Best regards
Oliver
The page I need help with: [log in to see the link]
- The topic ‘Disable Header video until user consent is given’ is closed to new replies.