Lightweight Cookie Notice


This is the free version of Lightweight Cookie Notice, the lightweight and customizable cookie plugin for WordPress.

A high-performance Cookie Plugin

This plugin generates the cookie notice with a single 5kb file (gzipped) written in pure JavaScript.

We recommend this plugin for high-performance websites or websites with a high number of visits.

83 Style Options

With the style options available in the plugin settings, you can customize the typography, the colors of all the elements, or even control details like borders, drop shadows, opacities, and more.

With all these options, you can create a cookie notice consistent with the style of your website.

Works with all the caching plugins

This plugin verifies the cookie acceptance with JavaScript. For this reason, all the caching plugins (E.g. WP Super Cache, W3 Total Cache, LiteSpeed Cache, WP Fastest Cache) are supported.


Display the cookie notice only to the users located in a custom-defined list of countries with the geolocation feature included in the plugin.

The plugin currently integrates two alternative geolocation services. The instructions to set up these services are available in the geolocation section of the plugin manual.

MaxMind GeoLite2

GeoLite2 is a well-known, free, and reliable IP geolocation database that the plugin can download and use.

To enable this geolocation service, you should create a MaxMind account and enter the license key in the plugin settings.

Note that this plugin updates the GeoLite2 database every week by using WP-Cron.

In this case, the IP geolocation data are retrieved with HTTP requests to the website. This geolocation service doesn’t require the creation of an account.

Additional Features of This Cookie Plugin

Place the Cookie Notice in Multiple Positions

A selector available in the plugin options allows you to generate a cookie notice in the following position:

  • Top of the screen
  • In the middle of the screen
  • Bottom of the screen

Shake Effect

Bring attention to the cookie notice with an optional shake effect applied to the cookie notice. The shake effect is activated when the user clicks outside the cookie notice.


This cookie plugin optionally generates a transparent mask over the content of the page. This mask makes the website unusable for the users that don’t give their consent.


The cookie notice generated by the plugin is fully responsive. We have also included the Responsive Breakpoint option to define when to switch from the desktop layout to the mobile layout and vice versa.

Additional information with a modal window

The plugin comes with an optional modal window that you can use to display the cookies policy, the privacy policy, or other custom information without redirecting the user to a specific page.

You can enter custom HTML in this modal window and easily include information like lists of cookies, lists of vendors, links to documents, and more.

Test Mode

Enable the Test Mode to display the cookie notice only to the website administrator. This feature allows you to set up the cookie notice content, colors, and behavior without causing temporary issues to a production website.

Custom Cookie Expiration

Set the amount of time you want to store the cookie acceptance of the user.

Reload Page

This option allows you to optionally reload the page when the user accept the cookies.

Pro Version

With the Professional Version of this cookie plugin, you can:

  • Create an unlimited number of cookie categories and let your users enabled or disable them with toggles
  • Display cookie catalogs in the post to display lists of cookies
  • Display a “Delete Preference” button in your posts
  • Move the plugin data between websites with the import and export features
  • Customize the plugin even more with additional options


This product can include GeoLite2 data created by MaxMind, available from


  • Options menu in the “General” tab
  • Options menu in the “Cookie Notice” tab
  • Options menu in the “Cookie Settings” tab
  • Options menu in the “Geolocation” tab
  • Options menu in the “Advanced” tab


Installation (Single Site)

With this procedure you will be able to install the Lightweight Cookie Notice plugin on your WordPress website:

  1. Visit the Plugins -> Add New menu
  2. Click on the Upload Plugin button and select the zip file you just downloaded
  3. Click on Install Now
  4. Click on Activate Plugin

Installation (Multisite)

This plugin supports both a Network Activation (the plugin will be activated on all the sites of your WordPress Network) and a Single Site Activation in a WordPress Network environment (your plugin will be activated on a single site of the network).

With this procedure you will be able to perform a Network Activation:

  1. Visit the Plugins -> Add New menu
  2. Click on the Upload Plugin button and select the zip file you just downloaded
  3. Click on Install Now
  4. Click on Network Activate

With this procedure you will be able to perform a Single Site Activation in a WordPress Network environment:

  1. Visit the specific site of the WordPress Network where you want to install the plugin
  2. Visit the Plugins menu
  3. Click on the Activate button (just below the name of the plugin)


Since a while I was facing caching issues in combination with wp-optimize caused by my other cookie notice plugin on all my websites which couldn’t be fixed although I tried a lot of things. I am so glad that I switched now to Lightweight Cookie Notice which has not only solved the issue. It is also very clean and truely lightweight and has a lot of customizing options. Thank you so much for creating and updating this plugin.
This plugin working fine. It’s fully customizable. You can modify almost ewerything. But missing “Custom CSS”. You have to add custom CSS to yours stylesheet, but its nothing bad.


Lightweight Cookie Notice はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。


“Lightweight Cookie Notice” は1ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Lightweight Cookie Notice” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。



June 14, 2024

  • The text domain has been changed to match the plugin slug.
  • Removed non-necessary validation methods used in the plugin options.


April 8, 2024

  • Fixed a bug (started with WordPress version 6.5) that prevented the creation of the plugin database tables and the initialization of the plugin database options during the plugin activation.


Oct 22, 2023

  • Fixed a bug that caused a JavaScript error when the cookie notice mask was disabled.
  • Minor refactoring to remove PHP deprecation warning.


May 25, 2023

  • The cross SVG icon is now generated with JavaScript.
  • Changed UglifyJS file compression options applied to production JavaScript files.
  • Minor back-end improvements.


November 25, 2022

  • The ability to generate a “Revisit Consent” button has been added.


March 3, 2022

  • Improved tooltip messages in the plugin options.


March 26, 2021

  • Minor back-end improvements.


March 26, 2021

  • Fixing error in readme.txt


March 26, 2021

  • Initial release.