The plugin will automatically detect the language of your site, but it only works with one language. See more on multiple languages using WordPress Multilingual Plugin (WPML) below.
The plugin will automatically find and block Youtube. Still, the rest has to be blocked using the cookie control SDK as per usual.
Only enable TCF if you are also utilising the TCF template in the pop-up section of the consent solution. If you are not using the TCF template, this will render the pop-up useless.
If you do not want to use the plugin and prefer implementing the consent pop-up in the code, follow the below guide:
Open the dashboard on your WordPress website.
Go to Appearance - Editor in the left-hand menu.
Locate header.php. This header can have various names depending on the template but will always display (header.php) underneath.
This place is the HTML of your <head> on all your pages. The consent pop-up script should be implemented here to display it on all the pages.
Insert the CookieConsent script between the opening and closing <head> tag.
Save the change by pressing “Update File” at the bottom of the page.
A multi-language site using WPML
If you are using the plugin: WPML to change the language on your website, you need to grab the lang-code from the plugin to combine it without data-culture in the consent pop-up script. The script will then look like this:
Remember to edit the data-culture to change the language.
The privacy controls script: