> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding Cookie compliance banner in WordPress

> Learn how to add a cookie compliance banner to your WordPress site to meet privacy laws and engage a wider audience.

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](https://hosting.com/hosting/platforms/wordpress-hosting/managed-wordpress-hosting/) site.

## Installing and configuring Cookie Compliance plugin in WordPress

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**:\
   ![](https://static.hosting.com/kb/kb_wp_addnewplugin_cookie_compliance.png)

3. Search for "**Cookie Notice & Compliance for GDPR / CCPA**" click **Install Now,** and then click **Activate** the plugin:\
   ![](https://static.hosting.com/kb/kb_wp_cookiecompliance.png)

4. On the **Dashboard**, in the left sidebar click **Cookies**:\
   ![](https://static.hosting.com/kb/kb_wp_cookiecompliance_menu.png)

5. Customize the message that a user will see in your site, the privacy policy link:\
   ![](https://static.hosting.com/kb/kb_wp_cookiecompliance_message.png)

6. Set an expiration date for the cookie compliance. Some legislation require to ask for the cookie consent every month:\
   ![](https://static.hosting.com/kb/kb_wp_cookiecompliance_expiry.png)

<Note>
  Note: Do not check the "accept the notice on any click on the page".
</Note>

7. Click **Save Changes**, reload the site should displaying a cookie consent & compliance notice:\
   ![](https://static.hosting.com/kb/kb_wp_cookiecompliance_message.png)

## Related articles

* [Adding CAPTCHA protection to a WordPress site](/docs/adding-captcha-protection-to-a-wordpress-site)

* [Do you support GDPR compliance?](/docs/do-you-support-gdpr-compliance)
