Title: Cookie Bar
Author: Brontobytes
Published: <strong>2016 年 6 月 30 日</strong>
Last modified: 2025 年 10 月 29 日

---

搜索插件

![](https://ps.w.org/cookie-bar/assets/banner-772x250.png?rev=1446263)

![](https://ps.w.org/cookie-bar/assets/icon-128x128.png?rev=1446263)

# Cookie Bar

 作者：[Brontobytes](https://profiles.wordpress.org/brontobytes/)

[下载](https://downloads.wordpress.org/plugin/cookie-bar.2.2.zip)

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

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

## 描述

A simple, lightweight WordPress plugin for displaying a discreet notification bar
that is dismissable and the dismissal is saved by cookie. Perfect for implementing
the EU cookie law (GDPR)!

**The Cookie Bar plugin creates a small bar at the bottom of the website with a 
short customizable message about cookies and an accept button.** Once a visitor 
has accepted the Cookie Bar, it then disappears.

Feel free to try out the plugin through our installation of [Cookie Bar](https://www.brontobytes.com/blog/cookie-bar-free-wordpress-plugin/).

Troubleshooting: If you or your visitors are using an adblocker that can block cookie
bars, the bar may not show up. Whitelist your website in your adblocker’s browser
add-on/extension.

## 屏幕截图

 * [[
 * Plugin Settings screenshot-1.png
 * [[
 * Cookie Bar screenshot-2.png

## 安装

Add the plugin by uploading the zip file to your WordPress admin area > Plugins 
> Add New or by installing it from the WordPress Plugin directory.
 Activate the
plugin and go to Settings > Cookie Bar. Configure it as you would like. Save. That’s
all!

## 评价

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

### 󠀁[Simple, light, easy](https://wordpress.org/support/topic/simple-light-easy/)󠁿

 [markzoi](https://profiles.wordpress.org/markzoi/) 2025 年 5 月 10 日 1 回复

It’s very hard to find a simple plugin like this (old school) now days they are 
all so annoying, this is what I need vs the all others!

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

### 󠀁[Wonderful easy solution](https://wordpress.org/support/topic/wonderful-easy-solution/)󠁿

 [LinuxArchitect](https://profiles.wordpress.org/linuxarchitect/) 2024 年 6 月 2
日 1 回复

I’m a big fan of open source, especially when it is such a clean and easy solution
as compared to the dozens (hundreds?) of other options. This is a grand total of
410 lines of code to review for security and performance issues. I certainly could
have written this, but I’m so glad I did not have to… Now I just have to craft the
dang cookie-policy page itself. Hint: look at sites that have their policy pages
published under a Creative Commons license. I’m looking at you, Wikipedia. 345 1143
15143 cookie-bar.php 30 90 1150 js/cookie-bar.js 5 8 139 wpml-config.xml 30 58 556
css/cookie-bar.css 410 1299 16988 total

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

### 󠀁[Discrete, effective & so simple](https://wordpress.org/support/topic/discrete-effective-so-simple/)󠁿

 [180turnaroundmarketing](https://profiles.wordpress.org/180turnaroundmarketing/)
2023 年 10 月 26 日 1 回复

This is by far, the best simple & discrete cookie compliance plugin. Love the color&
text customization options. I only wish that either the disclaimer text had adjustible
padding options so that compliance accessibility icons don’t obscure the text, or
even better, if it had an accessibility button built in to stay on screen even after
cookies are acknowledged.

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

### 󠀁[The plugin works great. It uses no third-party sites or memberships…](https://wordpress.org/support/topic/the-plugin-works-great-it-uses-no-third-party-sites-or-memberships/)󠁿

 [65Erik65](https://profiles.wordpress.org/65erik65/) 2022 年 12 月 4 日 1 回复

It’s a really good plugin! It doesn’t use lots of resources or third-party sites
and I like that it’s open source. There are a couple of things I’d like to see: 
I would like to be able to set the bar to the middle of the screen. Change size 
of both the bar (wide & height). Change font size.

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

### 󠀁[Simple and Unobtrusive!](https://wordpress.org/support/topic/simple-and-unobtrusive-3/)󠁿

 [cats02nb](https://profiles.wordpress.org/cats02nb/) 2022 年 9 月 26 日

Exactly what I need! Glad you continue support of the plug-in.

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

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-8419/)󠁿

 [Sten](https://profiles.wordpress.org/stentch/) 2021 年 4 月 23 日

I needed simple GDPR cookie bar and this plugin is the best + lightweight. U can
write any message to your visitors in any language with hyperlinks. U can set button
colour, but im very satisfied with default colors 🙂

 [ 阅读所有22条评价 ](https://wordpress.org/support/plugin/cookie-bar/reviews/)

## 贡献者及开发者

「Cookie Bar」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Brontobytes ](https://profiles.wordpress.org/brontobytes/)

[帮助将「Cookie Bar」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/cookie-bar)

### 对开发感兴趣吗?

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

## 更新日志

#### Version 2.2

 1. PHP 8.4 check.

#### Version 2.1

 1. XSS vulnerability fix.

#### Version 2.0

 1. New expiration options. Choose between custom (in days) or never expire.
 2. New option to display the Cookie Bar at the top of your website.
 3. Three new colour options (Button Font Colour, Bar Background Colour, Bar Font Colour).
 4. New option to hide the Cookie Bar for logged in users.
 5. Cookie Bar Settings link added in Plugins page.
 6. Mobile optimisation.
 7. Text improvements.
 8. PHP bug fix.

#### Version 1.8.9

 1. Sanitize the output. Fix XSS vulnerability.

#### Version 1.8.7

 1. Bug fix v5.3.

#### Version 1.8

 1. Fix compatibility issue.

#### Version 1.7

 1. Added i18n internationalization support.

#### Version 1.6

 1. Attempt to resolve possible caching issue with cookie.

#### Version 1.5

 1. Color Picker added.

#### Version 1.4

 1. Option to change button colour.

#### Version 1.3.5

 1. Default values added.

#### Version 1.2

 1. Initial public release.

## 额外信息

 *  版本 **2.2**
 *  最后更新：**7 月前**
 *  活跃安装数量 **10,000+**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/cookie-bar/)
 * 标签
 * [consent](https://cn.wordpress.org/plugins/tags/consent/)[cookie](https://cn.wordpress.org/plugins/tags/cookie/)
   [cookie bar](https://cn.wordpress.org/plugins/tags/cookie-bar/)[cookie compliance](https://cn.wordpress.org/plugins/tags/cookie-compliance/)
   [cookies](https://cn.wordpress.org/plugins/tags/cookies/)
 *  [高级视图](https://cn.wordpress.org/plugins/cookie-bar/advanced/)

## 评级

 4.9 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/cookie-bar/reviews/#new-post)

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

## 贡献者

 *   [ Brontobytes ](https://profiles.wordpress.org/brontobytes/)

## 支持

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

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