You can add cookie consent in WordPress website with or without a plugin. In this guide, I will explain how this can be done easily and quickly without a plugin.
Video tutorial at the bottom of this page.
How to add a cookie consent in WordPress?
This way is suitable for almost any website. Not only for WordPress.
To get started, go to the cookie consent message settings page. https://cookieconsent.osano.com/download/
Choose the position of the message location.
Choose a banner layout.
Choose a color theme or create your own.
Add the link to your own cookie consent policy.
Choose a compliance type.
Use the default message text or replace it with your own.
Copy the resulting code and paste it in before the
</head> tag on the pages of your website. For WordPress website, it is enough to add the code to the header.php file in your theme.
Go to “Appearance” – “Theme Editor” – Choose “header.php” file – Add the code before the
I have added cookie consent by a simple plugin called seers cookie consent plugin & they have very user friendly features