kjrocker Cookie Consent

By kj Rocker

★ 5.0/5 (2 ratings)10+ active installationsVersion 1.2.0

A lightweight, customisable GDPR / ePrivacy cookie consent banner. Easy to configure — colours, position, text, and behaviour all from the admin panel …

Description

kjrocker Cookie Consent helps your WordPress site comply with EU Cookie Law, GDPR, and ePrivacy regulations by displaying a clean, configurable cookie consent banner.

Features

  • Simple, clean banner — bottom or top of screen
  • Fully customisable colours via an admin colour picker
  • Accept and/or Decline buttons
  • Optional link to your Privacy Policy page
  • Three compliance modes: Opt-in (GDPR), Opt-out (CCPA), or Informational
  • Smooth slide-in animation (optional)
  • Auto-dismiss after N seconds (optional)
  • Configurable cookie name and expiry period
  • Cookies set with SameSite=Lax; Secure for modern browser compatibility
  • PHP 8.x compatible
  • Translation ready

Compliance Modes

  • Opt-in (GDPR) — The consent cookie is only set after the user clicks Accept.
  • Opt-out (CCPA) — Assumes consent; the cookie is set on page load. User can still decline.
  • Informational — Banner displayed for information only; no consent tracking.

Installation

  1. Upload the kjrocker-cookie-consent folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Settings → Cookie Consent to configure the banner.

FAQ

Does this plugin make my site GDPR compliant?

This plugin provides a cookie consent banner as one component of GDPR compliance. Full compliance depends on your overall data processing practices.

Can I change the banner text?

Yes — all text, colours, and behaviour are configurable from Settings → Cookie Consent.

Will this slow down my website?

No. The plugin loads a small CSS file and a minimal JavaScript file only on the frontend.

Screenshots

Changelog

1.2.0

  • Full rewrite: converted to OOP (class-based) architecture
  • PHP 8.x compatibility fixes
  • Added proper sanitize_callback to register_setting()
  • Added nonce verification on settings form
  • Added SameSite=Lax; Secure cookie attributes
  • Added three compliance modes: opt-in, opt-out, informational
  • Added Decline button with configurable colour
  • Added AJAX consent recording hook for server-side logging
  • Added auto-dismiss feature
  • Added “Settings” shortcut link on Plugins page
  • Fixed “Cookie Concent” typo in admin heading
  • Fixed Stable Tag SVN configuration
  • Improved admin UI with card-based grid layout
  • Improved accessibility: ARIA attributes on banner, focus styles

1.1.5

  • Minor updates

1.1.0

  • Added colour picker for banner customisation

1.0.0

  • Initial release