This plugin adds a simple cookie consent banner to the bottom of the page. Live preview
It is not clear whether this plugin complies with the EU ePrivacy regulation of 2020 or not. If you live in the EU and are therefore not sure, you can use plugins like GDPR Cookie Consent from Web Toffee.
- Download Plugin
- In your admin panel, go to Plugins > and click the Add New button.
- Click Upload Plugin and Choose File, then select the Plugin’s .zip file.
- Click Install Now.
- Click Activate to use your new Plugin right away.
Text and link targets can be translated in the theme.
The cookie is set for 12 days by default. After 12 days the banner is displayed again.
Override template via theme
Template file can be found within the /bs5-cookie-consent/templates/ plugin directory.
Edit file in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /bs-cookie-consent-main keeping the same file structure but removing the /templates/ subdirectory. Path must be /your-theme/bs-cookie-consent-main/cookie-consent.php.
The copied file will now override the bS5 Cookie Consent default template file. Change classes or HTML as you want.