How to add Cookie compliance banner in WordPress

Cookies are small pieces of data stored in text files in your web browser that are placed on a user's device by any website (mobile or desktop). Cookies are necessary on the Internet because they allow websites to remember user information, logins, shopping carts, and other details. Cookie compliance banners are essential for sites that want to reach a large audience while adhering to strict privacy laws because cookies can store large amounts of critical data about a user. This article will show you how to add a cookie compliance banner to your WordPress site.

To add a cookie compliance banner in WordPress, follow these steps:

  1. Log in to WordPress as the administrator.
  2. On the Dashboard in the left sidebar, click Plugins, and then click Add New:

  3. Search for “Cookie Notice & Compliance for GDPR / CCPA” click Install Now, and then click Activate the plugin:

  4. On the Dashboard, in the left sidebar click Cookies:

  5. Customize the message that a user will see in your site, the privacy policy link:

  6. Set an expiration date for the cookie compliance. Some legislation require to ask for the cookie consent every month:

    Note: Do not check the “accept the notice on any click on the page”.
  7. Click Save Changes, reload the site should displaying a cookie consent & compliance notice:

More Information

For more information about cookies, please visit https://www.a2hosting.com/kb/getting-started-guide/internet-and-networking

Get Managed WordPress Hosting

Article Details

Other Articles in This Category

Show More

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.