# Adding a cookie compliance banner in WordPress

> Add a cookie consent banner to your WordPress site with a plugin to help meet privacy rules such as GDPR and CCPA.

Source: https://helpcenter.ruachost.com/wordpress/guides/adding-cookie-compliance-banner-in-wordpress/

Cookies store user information such as logins, shopping carts, and preferences. Privacy laws like **GDPR** and **CCPA** require websites to notify users about cookie usage and obtain consent. On **ruachost.com**, you can add a cookie compliance banner to your WordPress site using a plugin.

## Why Add a Cookie Banner?

- Comply with international privacy regulations (GDPR, CCPA).
- Build trust with visitors by being transparent about data usage.
- Avoid legal penalties for non‑compliance.

## Steps to Add a Cookie Compliance Banner

1. **Log in to WordPress** as the administrator.
2. In the dashboard, go to **Plugins → Add New**.
3. Search for:

   ```
   Cookie Notice & Compliance for GDPR / CCPA
   ```
4. Click **Install Now**, then **Activate**.
5. In the dashboard, go to **Cookies** (new menu item).
6. Configure settings:

   - **Message** → Customize the text shown to users.
   - **Privacy Policy Link** → Add a link to your privacy policy page.
   - **Expiration Date** → Set how long consent lasts (e.g., 30 days).
   - ⚠️ Do not enable “accept notice on any click” — this may violate compliance rules.
7. Click **Save Changes**.
8. Reload your site → The cookie banner should now appear.

> **Note:**
- Some legislation requires re‑consent every month.
- Always provide a clear link to your privacy policy.
- Test the banner on desktop and mobile devices.
