Home > Docs > GDPR Cookie Consent > Getting Consent from Users Before Accessing the Site

Getting Consent from Users Before Accessing the Site

Last updated on June 14, 2023

The cookie banner can be designed and created to suit various needs of the site owners depending upon the site theme and its associated requirements. GDPR cookie consent plugin allows you to obtain a customized cookie banner for your site. It consists of various functionalities to fulfill the varied needs of the site owners. The site owner can decide on how the cookie banner must appear on their website, its position, design, etc.

Different types of cookie notice

With the GDPR cookie consent plugin, you can design your cookie bar as a

  • banner
  • pop-up
  • widget.

On choosing the layout as a pop-up, you will get an additional option to set the pop as an overlay on the site by blocking the user from further using the site if consent is not provided. This methodology can actually make an explicit awareness to the visitor that the site is using cookies and it is necessary to mark the consent to proceed further.

cookie-bar-as-popup with overlay


Let us see how this can be achieved using the GDPR cookie consent plugin:

  1. Install and activate the GDPR Cookie consent plugin.
  2. Navigate to the GDPR Cookie Consent >Settings > Customise cookie bar page. It is further divided into two sections:
    • Cookie Bar
    • Revisit consent

The cookie bar tab consists of various options to configure the behavior of the cookie. However, to obtain an overlay to block the user without consent from accessing the site, scroll down to the Show cookie bar as a field, and choose Popup.

Cookie bar as a popup with an overlay

Now, choose Yes for the Add overlay? option.

This will set an overlay with the popup, which will block the user from browsing the website unless consent is obtained.

A sample popup notice with overlay is as shown below:

Apart from this, several other settings are also provided on the cookie bar page as shown below:

  • Enter an appropriate message heading for the cookie bar in the field provided. Leave it blank if you don’t need one.
  • The message field populates the default cookie banner content. It supports basic HTML tags and other shortcodes for Accept button, Rejects button, etc.
  • You also have a provision to control the color of the Cookie Bar and/or the message font. By default, the plugin will take the active theme font.
  • The three different styles supported for the cookie bar are Banner, Pop up, or as a widget.
    • With the banner option, you get to choose if you want to place the banner in the header or footer.
    • The pop-up type will show the cookie message bar as a popup instead of a banner. You can set an overlay along with the popup, which will block the user from browsing the website unless consent is obtained. 
    • As for the widget, you can position it to the left or right of the website.
    • On load option allows you to either animate the notification or make it sticky while loading the website.
  • On hiding option allows you to either animate the way the notification disappears or to disappear without any visual effect.