For easy integration, download our Wordpress Plugin here
Open the dashboard on your WordPress website.
Step 1)
Go to Appearance --> Editor in the left-hand menu.
Step 2)
Locate header.php. This can have various names depending on the template but will always be explained as (header.php) underneath.
As this is the HTML of your <head> on all your pages. The Consent Pop-up must be implemented here to be shown on all the pages.
Insert the CookieConsent script between the opening and closing <head> tag.
<script id="CookieConsent" src="https://policy.app.cookieinformation.com/uc.js" data-culture="EN" type="text/javascript"></script>
Remember to set the data-culture to the language of the Consent pop-up.
Example:
Step 3)
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-cuture in the consent pop-up script.
The script will then look like this:
<script id="CookieConsent" src="https://policy.app.cookieinformation.com/uc.js" data-culture="<?php echo ICL_LANGUAGE_CODE; ?>" type="text/javascript"></script>