How to block youtube, vimeo, and other cookies from video providers by using the Cookies Policy Notification Bar Joomla! plugin, and the AllVideos Joomla! plugin.
In this tutorial, I will show you how to block Youtube, Vimeo, and other cookies from video providers at your Joomla! website by using the “Cookies Policy Notification Bar – Joomla! Plugin” and the “AllVideos – Joomla! Plugin“.
Download and Enable the “AllVideos” free plugin by JoomlaWorks. https://www.joomlaworks.net/extensions/free/allvideos
In your Joomla! folder, navigate to the directory “\plugins\content\jw_allvideos\jw_allvideos\tmpl\“, and create the folder “GDPR_Compliant“.
In the same folder, create the file “\plugins\content\jw_allvideos\jw_allvideos\tmpl\GDPR_Compliant\default.php” and add the below PHP code.
Create a folder witht the name “css”, and inside the “css” folder, create the “\plugins\content\jw_allvideos\jw_allvideos\tmpl\GDPR_Compliant\css\template.css” file with the below CSS code.
Navigate to the plugin settings, Extensions > Plugins > AllVideos (by JoomlaWorks), and select the “GDPR_Compliant” template.
A. This is how it looks without the “GDPR_Compliant” AllVideos template.
B. This is how it looks with the “GDPR_Compliant” AllVideos template, and before the user accepts the cookies policy.
C. This is how it looks with the “GDPR_Compliant” AllVideos template, and after the user accepted the cookies policy.
With this method, the videos are not displayed before the user accepts, and the cookies from video providers are not loaded by default.