Git Product home page Git Product logo

cookie-consent-banner's Introduction

Cookie Consent Banner plugin for Craft CMS 3.x

Add a configurable cookie consent banner to the website.

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require adigital/cookie-consent-banner
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Cookie Consent Banner.

Cookie Consent Banner Overview

Use this plugin to display a configurable 'cookie consent banner' on a website.

Configuring Cookie Consent Banner

The appearance of the banner can be customised by choosing its position, layout style and colour palette. The banner text and a 'learn more' link can also be defined. Additionally, there are options to control whether the banner is auto-injected, how the required CSS and JS assets are loaded and whether the banner should display on certain entry types/categories or in live preview.

If auto-injection is not used, the banner can be rendered by using the {{ craft.cookieConsentBanner.addBanner() }} variable/method.

Brought to you by Mark @ A Digital

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.