rareloop/wp-cookie-banner

There is no license information available for the latest version (v1.0.0) of this package.

Provides an obnoxious cookie warning

Installs: 477

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:wordpress-plugin

v1.0.0 2015-11-28 14:01 UTC

This package is auto-updated.

Last update: 2024-11-12 03:34:24 UTC


README

Adds one of those obnoxious cookie warning banners to your site. Instead of using JavaScript to add the banner, the markup is on the DOM at page load.

Setup

Add the following to your templates where you want the banner to appear:

[cookiebanner]We know you don't care but we use cookies. <a href="/cookies">More information</a>[/cookiebanner]

Optional attributes:

  • class - defaults to cookiebanner
  • maxAge - defaults to 1 year

Example output

<div class="cookiebanner">
    We know you don't care but we use cookies. <a href="/cookies">More information</a>
</div>

Cookie Usage

Ironically, the plugin needs to create a cookie so that the server knows not to show the banner after its been shown once. In case you need to add this to your privacy policy, the cookie created is called _seen_cookie_notice.