As of March 9, 2019, this project has been abandoned. Please use another package such as Cookie Notice for GDPR by dFactory.
This is a Wordpress plugin that adds a cookie notice. The notice is shown on every page until the user clicks the "Accept" button. This plugin uses implicit consent, meaning that it does not prevent any use of cookies before the user accepts. The notice message and the color scheme can be changed in the settings page, and further customization can be accomplished in your theme with the use of the wpcn classes.
Note that this plugin has only been tested on Bedrock-based Wordpress installations running Wordpress v4.9.6.
- If you're using a Composer-based Wordpress project, simply run the following command in the project root:
composer require asmbs/wp-cookie-notice - If you're using a traditional Wordpress project, simply copy these files to a folder named
wp-cookie-noticein your project'spluginsfolder. - By default, this plugin uses a canned message and a gray color scheme. To change this, go to your Wordpress administrator dashboard, click "Settings" in the sidebar menu, and then click the "Cookie Notice" menu item that appears.
Note that this plugin has only been tested on Bedrock-based Wordpress installations running Wordpress v4.9.6 and NPM v6.0.1.
- Run
npm installfrom the plugin's root directory. This installs the development dependencies. - When you make changes, run
npm run-script buildto build the assets once, or runnpm run-script startto keep a watcher going.