Title: Lightweight Cookie Notice &#8211; Cookie Banner for Cookie Consent
Author: DAEXT
Published: <strong>2021 年 3 月 26 日</strong>
Last modified: 2026 年 6 月 26 日

---

搜索插件

![](https://ps.w.org/lightweight-cookie-notice-free/assets/banner-772x250.png?rev
=2822220)

![](https://ps.w.org/lightweight-cookie-notice-free/assets/icon.svg?rev=2822220)

# Lightweight Cookie Notice – Cookie Banner for Cookie Consent

 作者：[DAEXT](https://profiles.wordpress.org/daext/)

[下载](https://downloads.wordpress.org/plugin/lightweight-cookie-notice-free.1.21.zip)

 * [详情](https://cn.wordpress.org/plugins/lightweight-cookie-notice-free/#description)
 * [评价](https://cn.wordpress.org/plugins/lightweight-cookie-notice-free/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/lightweight-cookie-notice-free/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/lightweight-cookie-notice-free/#developers)

 [支持](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/)

## 描述

This is the free version of [Lightweight Cookie Notice](https://daext.com/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 9kb 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.

### Geolocation

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](https://daext.com/doc/lightweight-cookie-notice/#geolocation)
of the plugin manual.

#### MaxMind GeoLite2

To enable the [MaxMind GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/)
geolocation service, create a [MaxMind](https://www.maxmind.com/) account, download
the provided databases, and configure the paths to these files in the plugin settings.

#### HostIP.info

In this case, the IP geolocation data are retrieved with HTTP requests to the [HostIP.info](https://hostip.info/)
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.

#### Mask

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.

#### Responsive

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](https://daext.com/lightweight-cookie-notice/) of
this cookie plugin, you can:

 * Download the consent log data in CSV format
 * Download the proof of consent of each consent log record in PDF format
 * Instantly run JavaScript scripts based on the cookie preferences of the user
 * Share the user consent preferences on subdomains
 * Configure Google Consent Mode
 * Display one or more cookie audit tables in your posts with the “Cookies” editor
   block
 * Allow visitors to reset their cookie preferences with the “Delete Cookies” editor
   block
 * Allow visitors to change their cookie preferences with the “Revisit Consent” 
   editor block
 * Move the plugin data between websites with the import and export features
 * Define which user capabilities are required to access each plugin menu

### Disclaimer

This product can include GeoLite2 data created by MaxMind, available from [https://www.maxmind.com](https://www.maxmind.com/).

## 屏幕截图

[⌊Explore the consent log data collected by the plugin.⌉⌊Explore the consent log
data collected by the plugin.⌉[

Explore the consent log data collected by the plugin.

[⌊Manage the cookie sections from a dedicated menu.⌉⌊Manage the cookie sections 
from a dedicated menu.⌉[

Manage the cookie sections from a dedicated menu.

[⌊Configure the cookie sections.⌉⌊Configure the cookie sections.⌉[

Configure the cookie sections.

[⌊Manage the cookie categories from a dedicated menu.⌉⌊Manage the cookie categories
from a dedicated menu.⌉[

Manage the cookie categories from a dedicated menu.

[⌊Define the cookie categories to group cookies into related areas.⌉⌊Define the 
cookie categories to group cookies into related areas.⌉[

Define the cookie categories to group cookies into related areas.

[⌊Manage the cookies from a dedicated menu.⌉⌊Manage the cookies from a dedicated
menu.⌉[

Manage the cookies from a dedicated menu.

[⌊Register the cookies used on the website and define attributes like name, expiration,
purpose, and more.⌉⌊Register the cookies used on the website and define attributes
like name, expiration, purpose, and more.⌉[

Register the cookies used on the website and define attributes like name, expiration,
purpose, and more.

[⌊Export the plugin data as XML files.⌉⌊Export the plugin data as XML files.⌉[

Export the plugin data as XML files.

[⌊Perform bulk operations such as a complete plugin reset, deleting plugin statistics,
and more.⌉⌊Perform bulk operations such as a complete plugin reset, deleting plugin
statistics, and more.⌉[

Perform bulk operations such as a complete plugin reset, deleting plugin statistics,
and more.

[⌊Enter a custom cookie notice message and configure the content and behavior of
the buttons.⌉⌊Enter a custom cookie notice message and configure the content and
behavior of the buttons.⌉[

Enter a custom cookie notice message and configure the content and behavior of the
buttons.

[⌊Configure the content and behavior of the cookie settings modal window.⌉⌊Configure
the content and behavior of the cookie settings modal window.⌉[

Configure the content and behavior of the cookie settings modal window.

[⌊Allow users to change their cookie preferences by enabling a revisit consent button.⌉⌊
Allow users to change their cookie preferences by enabling a revisit consent button
.⌉[

Allow users to change their cookie preferences by enabling a revisit consent button.

[⌊Configure the general style of the cookie notice.⌉⌊Configure the general style
of the cookie notice.⌉[

Configure the general style of the cookie notice.

[⌊Select the colors used by the elements displayed in the cookie notice.⌉⌊Select
the colors used by the elements displayed in the cookie notice.⌉[

Select the colors used by the elements displayed in the cookie notice.

[⌊Configure the colors used in the cookie settings modal window.⌉⌊Configure the 
colors used in the cookie settings modal window.⌉[

Configure the colors used in the cookie settings modal window.

[⌊Configure the position and colors of the revisit consent button.⌉⌊Configure the
position and colors of the revisit consent button.⌉[

Configure the position and colors of the revisit consent button.

[⌊Use the geolocation options to display the cookie notice only in a custom selection
of countries.⌉⌊Use the geolocation options to display the cookie notice only in 
a custom selection of countries.⌉[

Use the geolocation options to display the cookie notice only in a custom selection
of countries.

[⌊Geolocate your visitors using the Geolite2 Country and Geolite2 City databases
provided by MaxMind.⌉⌊Geolocate your visitors using the Geolite2 Country and Geolite2
City databases provided by MaxMind.⌉[

Geolocate your visitors using the Geolite2 Country and Geolite2 City databases provided
by MaxMind.

[⌊Configure advanced plugin settings that affect the behavior of the cookie notice.⌉⌊
Configure advanced plugin settings that affect the behavior of the cookie notice
.⌉[

Configure advanced plugin settings that affect the behavior of the cookie notice.

[⌊Configure the fonts used in the cookie notice layout. You can optionally load 
your favorite Google Fonts.⌉⌊Configure the fonts used in the cookie notice layout.
You can optionally load your favorite Google Fonts.⌉[

Configure the fonts used in the cookie notice layout. You can optionally load your
favorite Google Fonts.

[⌊Set up the content and responsive behavior of the cookie notice, and more.⌉⌊Set
up the content and responsive behavior of the cookie notice, and more.⌉[

Set up the content and responsive behavior of the cookie notice, and more.

[⌊Visitors can accept the cookies or proceed to the cookie configuration.⌉⌊Visitors
can accept the cookies or proceed to the cookie configuration.⌉[

Visitors can accept the cookies or proceed to the cookie configuration.

[⌊Visitors can configure their cookie preferences from the cookie settings modal
window.⌉⌊Visitors can configure their cookie preferences from the cookie settings
modal window.⌉[

Visitors can configure their cookie preferences from the cookie settings modal window.

[⌊A modal window used to display the cookies policy to the visitors.⌉⌊A modal window
used to display the cookies policy to the visitors.⌉[

A modal window used to display the cookies policy to the visitors.

[⌊Visitors can read the list of cookies included in each cookie category.⌉⌊Visitors
can read the list of cookies included in each cookie category.⌉[

Visitors can read the list of cookies included in each cookie category.

[⌊Visitors can read the list of cookie vendors.⌉⌊Visitors can read the list of cookie
vendors.⌉[

Visitors can read the list of cookie vendors.

[⌊Display a cookie notice positioned at the center of the screen.⌉⌊Display a cookie
notice positioned at the center of the screen.⌉[

Display a cookie notice positioned at the center of the screen.

[⌊A cookie notice positioned at the top of the screen.⌉⌊A cookie notice positioned
at the top of the screen.⌉[

A cookie notice positioned at the top of the screen.

[⌊A simple cookie notice with only the "Accept" button.⌉⌊A simple cookie notice 
with only the "Accept" button.⌉[

A simple cookie notice with only the “Accept” button.

[⌊A cookie notice with the dismiss button.⌉⌊A cookie notice with the dismiss button
.⌉[

A cookie notice with the dismiss button.

[⌊Create a mask to prevent interaction on the website when the cookie notice is 
active.⌉⌊Create a mask to prevent interaction on the website when the cookie notice
is active.⌉[

Create a mask to prevent interaction on the website when the cookie notice is active.

[⌊Apply advanced style customization like a translucent cookie notice background
color.⌉⌊Apply advanced style customization like a translucent cookie notice background
color.⌉[

Apply advanced style customization like a translucent cookie notice background color.

[⌊Configure custom colors for any element included in the cookie notice.⌉⌊Configure
custom colors for any element included in the cookie notice.⌉[

Configure custom colors for any element included in the cookie notice.

[⌊Create a unique cookie notice that supports the brand style guidelines.⌉⌊Create
a unique cookie notice that supports the brand style guidelines.⌉[

Create a unique cookie notice that supports the brand style guidelines.

## 安装

#### 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)

## 评价

![](https://secure.gravatar.com/avatar/404e5e62a5956a752ee7d6dad005ae91becafa85bf7ce1348b17cf810a4fc78b?
s=60&d=retro&r=g)

### 󠀁[Light, Simple, Fully Customizable](https://wordpress.org/support/topic/light-simple-fully-customizable/)󠁿

 [Steve Shepard](https://profiles.wordpress.org/shepard0628/) 2025 年 6 月 21 日

Lightweight and best speed & specs on wphive.com as far as I could tell. I'm very
happy with free version, but will upgrade eventually to very cost-effective, affordable
Pro version.

![](https://secure.gravatar.com/avatar/6e0d20667cf96ff46c119f9d03ce7d308911ef4861cc98b92c59d0ffca87a02c?
s=60&d=retro&r=g)

### 󠀁[Awesome](https://wordpress.org/support/topic/awesome-10468/)󠁿

 [maxence755](https://profiles.wordpress.org/maxence755/) 2025 年 2 月 18 日

Lighweight is key for a wordpress plugin and this one is awesome, fast and pro :
you can add any field to turn on off all the cookies you collect, thanks to the 
dev great job

![](https://secure.gravatar.com/avatar/583c746ecfd0e520669aeac6b22907c9355a4b26cc210d0352c5fb05fb38b6e4?
s=60&d=retro&r=g)

### 󠀁[Perfect lightweigt solution with a lot of customizing options](https://wordpress.org/support/topic/perfect-lightweigt-solution-with-a-lot-of-customizing-options/)󠁿

 [Andre](https://profiles.wordpress.org/naturheilmittel/) 2022 年 11 月 30 日

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.

![](https://secure.gravatar.com/avatar/5d7cd8cbc13da128ab54462f216cbd93a3033f1276d82442d37390487d3610c4?
s=60&d=retro&r=g)

### 󠀁[Working fine](https://wordpress.org/support/topic/working-fine-156/)󠁿

 [isites](https://profiles.wordpress.org/isites/) 2021 年 5 月 7 日

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.

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/reviews/)

## 贡献者及开发者

「Lightweight Cookie Notice – Cookie Banner for Cookie Consent」是开源软件。 以下
人员对此插件做出了贡献。

贡献者

 *   [ DAEXT ](https://profiles.wordpress.org/daext/)

「Lightweight Cookie Notice – Cookie Banner for Cookie Consent」插件已被翻译至 1
种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/lightweight-cookie-notice-free/contributors)
为本插件所做的贡献。

[帮助将「Lightweight Cookie Notice – Cookie Banner for Cookie Consent」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/lightweight-cookie-notice-free)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/lightweight-cookie-notice-free/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/lightweight-cookie-notice-free/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/lightweight-cookie-notice-free/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/lightweight-cookie-notice-free/)。

## 更新日志

#### 1.21

_June 25, 2026_

 * Consent log submissions and geolocation checks now work correctly on sites using
   page caching with long cache durations.

#### 1.20

_June 24, 2026_

 * Security fix: Resolved CVE-2026-12272. The W3TC Page Fragment Caching integration
   now uses a unique per-installation security key instead of a hardcoded value.

#### 1.19

_May 2, 2025_

 * Fixed PHP notice caused by early use of translation functions.

#### 1.18

_March 28, 2025_

 * Fixed an issue where the cookie path attribute was not set correctly.

#### 1.17

_January 16, 2025_

 * The following options have been added to the plugin settings: “Toggle On Color”,“
   Toggle Off Color”, “Toggle Mixed Color”, “Toggle Disabled Color”.
 * The “Acceptance Rate” value is now calculated using a limited number of consent
   log records to prevent performance issues and memory exhaustion.

#### 1.16

_December 1, 2024_

 * Resolved CSS style issues introduced by changes in WordPress 6.7

#### 1.15

_September 16, 2024_

 * Bug fix: The “Button 2 Background Color” option of the “Cookie Settings” section
   has been added again in the plugin.

#### 1.14

_September 3, 2024_

 * Performance improvements.
 * A new option to configure the maximum number of displayed consent log records
   has been added.

#### 1.13

_August 12, 2024_

 * Action link added in plugins menu.

#### 1.12

_August 11, 2024_

 * Major back-end UI update.
 * The following menus and the related functionalities have been added: Consent 
   Log, Sections, Categories, and Cookies.
 * Additional options have been added to the plugin settings.

#### 1.11

_June 14, 2024_

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

#### 1.10

_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.

#### 1.09

_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.

#### 1.08

_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.

#### 1.07

_November 25, 2022_

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

#### 1.06

_March 3, 2022_

 * Improved tooltip messages in the plugin options.

#### 1.05

_March 26, 2021_

 * Minor back-end improvements.

#### 1.04

_March 26, 2021_

 * Fixing error in readme.txt

#### 1.03

_March 26, 2021_

 * Initial release.

## 商业插件

该插件免费，但提供额外的付费商业升级或支持服务。

## 额外信息

 *  版本 **1.21**
 *  最后更新：**3 月前**
 *  活跃安装数量 **5,000+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **7.0.7**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/lightweight-cookie-notice-free/)
   和 [Italian](https://it.wordpress.org/plugins/lightweight-cookie-notice-free/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/lightweight-cookie-notice-free)
 * 标签
 * [CCPA](https://cn.wordpress.org/plugins/tags/ccpa/)[cookie banner](https://cn.wordpress.org/plugins/tags/cookie-banner/)
   [cookie consent](https://cn.wordpress.org/plugins/tags/cookie-consent/)[cookie notice](https://cn.wordpress.org/plugins/tags/cookie-notice/)
   [GDPR](https://cn.wordpress.org/plugins/tags/gdpr/)
 *  [高级视图](https://cn.wordpress.org/plugins/lightweight-cookie-notice-free/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/reviews/)

## 贡献者

 *   [ DAEXT ](https://profiles.wordpress.org/daext/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://daext.com)