To install the CookieYes code you need to head over to your WordPress dashboard. There are two ways for installing this on your WordPress website.
You can add the code via the theme of your WordPress website. Go to Appearance >Theme Editor from your WordPress dashboard.
In the theme editor, go to Theme Header or Footer and paste the code between the <body> </body> tags.
Update file and you can see the banner displayed on your website.
Using a Plugin
Another method is to search for a plugin to edit your WordPress website and insert the installation code, without editing the theme. This method is recommended over the first one as in the case when the theme is updated, the changes will be overwritten.
For example, the plugin Insert Headers and Footers can be used. This plugin will help you insert a code into your WordPress website header or footer.
Note: Insert Headers and Footers plugin is an example of the plugins that can be used for inserting code in this way. It’s not a recommendation, you can use a plugin of your choice.
Download and install the plugin on your website. Once installed and activated, you will see an option to configure the plugin.
When you click on it, you will be redirected to the settings page of Insert Headers and Footers. Here you can enter scripts or code in Header or Footer and save the changes.
Once you have completed the steps you can see the banner appear on your website.
These were all the steps involved in the installation of CookieYes code on WordPress.