Skip to Content
Solodev Logo
  • Platform
    Platform
    Cloud icon

    Cloud

    Launch containers with SSO and monitoring

    Cube icon

    CMS

    Content Management Service for deploying CMS

    Person's profile icon

    AI

    Host AI models and train on a leading provider

    Crypto coin icon

    Blockchain

    Run a trusted network on your chain of choice

    Circle with arrows icon

    Digital

    Manage adtech, martech, and commerce apps

    Internet of Things icon

    IoT

    Connect and analyze devices and experiences

    Metaverse icon

    Metaverse

    Build worlds with AR and VR applications

    Image icon with a sexagon around

    Mobile

    Support for mobile apps and store listings

  • Pricing
  • Enterprise
Solodev Logo
Close Icon
  • Platform Angle right icon
    • Cloud icon Cloud
    • Cube icon CMS
    • Person's profile icon AI
    • Crypto coin icon Blockchain
    • Circle with arrows icon Digital
    • Internet of Things icon IoT
    • Metaverse icon Metaverse
    • Image icon with a sexagon around Mobile
  • Explore Angle right icon
  • Marketplace Angle right icon
  • Careers Angle right icon
  • Contact Us Angle right icon
  • Connect

Terms

Privacy Policy

GDPR Compliance and the Use of Cookie Consent Bars


With GDPR in full swing, your website will need the tools to be GDPR compliant.

GDPR Compliance and the Use of Cookie Consent Bars
Build the perfect cloud stack today. Shop the Marketplace.

The European Union's GDPR regulations are in full swing, and websites around the world are struggling to comply to the changes. This is especially true for a variety of organizations who either wanted to wait and see how the regulations would impact their interests or how others were implementing the changes.

First, what is the GDPR? The General Data Protection Regulation (GDPR) is a comprehensive set of regulations governing data protection and the privacy of individuals within the EU that went into effect on May 25, 2018. While there remains considerable uncertainty around these requirements and how they will be enforced, it’s generally believed that companies (including those based in the US) may be fined if they fail to take adequate steps to address the basic principles of the GDPR.

The regulations are extensive and the specifics somewhat confusing. One of the key concepts requires that website visitors should be aware of what information a website collects about them and how the organization plans on using that information. One of the best ways to notify your website visitors of this information (and get on track to becoming GDPR compliant) is through a cookie consent bar/notice.

If you have visted any number of websites recently, you will see that an alert (either at the top or bottom of a site) is becoming common place. This notification, generally speaking, tells the user that a given site collects certain information and more details can be found on, say, the site's privacy policy. This type of element is being widely adopted because it confronts some of the big concepts of GDPR.

In the hope of spreading the word, here's how to build out a simple HTML cookies bar so your website can get one step closer to GDPR compliance:

HTML

For the greatest compatibility with existing websites, the following HTML does not rely on Bootstrap or any other styling dependencies. This will allow you to easily insert the snippet into your existing templates.

Solodev Shortcode

For Solodev users, we have created a custom shortcode that can be easily included in the base template of sites. The shortcode allows you to customize the color accents of the banner to better match your branding and to specify the unique link to your privacy policy.

CSS

The CSS styles the banner as a fixed element to the bottom of the page. Feel free to customize this CSS to match the specifics of your individual site.

JS

The JS simply initializes the popover and uses it's options to allow it to close on click. If clicked, a localStorage object is stored so that your users don't repeatedly see the banner.

Want to see how it all looks before committing to its use? Check out the JSFiddle below. Be sure to scale your browser window to various sizes to see how the banner would look on mobile display.

In our next blog post, we'll discuss the issue of "Explicit Consent" in acknowledging the site's use of cookie, a confirmation button the user must click, how all of the above code can be used to create this type of web design element.

Download from Github

Share on Facebook Tweet It

Scott Madara
Contributions Editor here at Solodev. Want to be featured on the Solodev Blog? Get in touch.
Follow me on Twitter

RELATED POSTS

How to Make your Hero Image the Hero of your Webpage

How to Make your Hero Image the Hero of your Webpage

Three Common Website Issues and How to Survive Them

Three Common Website Issues and How to Survive Them

Five Tips to Building Landing Pages that Convert

Five Tips to Building Landing Pages that Convert

How to Edit Meta Information with your Solodev Website

How to Edit Meta Information with your Solodev Website

  • web design
    • Bootstrap
    • Form Tutorials
    • Navigation
    • Search
    • Sliders
    • Social
  • digital marketing
  • solodev
    • API
    • User Permissions
  • customer experience
  • accessibility
  • seo
  • analytics
  • sem

Sign up to explore

Create an account in seconds and start building today.

Sign up for Solodev

Join the list

Get the latest updates on cloud, AI, and more.

Community

Connect with Solodevs across the social universe

  • X Icon
Solodev Logo footer

Solodev helps developers around the globe build amazing customer experiences and collaborate on digital transformation, from code to cloud. The Solodev Platform provides the most complete ecosystem for developing apps and launching brands powered by cutting-edge technologies—including Cloud, CMS, AI, Blockchain, Digital, IoT, Metaverse, and Mobile.

Platform

  • Cloud
  • CMS
  • AI
  • Blockchain
  • Digital
  • IoT
  • Metaverse
  • Mobile

Explore

  • Pricing
  • Marketplace
  • Enterprise
  • AWS

Company

  • About Us
  • Media
  • Blog
  • Careers
  • Contact Us

©2025 Solodev. All rights reserved worldwide.

Terms Privacy Policy
Solodev logo
GET STARTED

Fill out the form to speak with a Solodev Advisor

BUY NOW

Fill out the form and one of our launch engineers will contact you soon

Set datatable type to be Form to show.

We use cookies to provide and improve our services. By using our site, you consent to cookies. Accept Learn more