Cookies Popup in WordPress
Cookies Popup in WordPress
July 26th, 2018 in Wordpress |

Do you want to add a cookies popup in WordPress? The European Union’s cookie law requires websites to get user consent to set any cookies on their computers. As a WordPress website owner, your website may be using cookies as well. In this article, we will show you how to add a cookies popup in WordPress.

How WordPress Uses Cookies?

By default, WordPress uses cookies for authentication purposes to store session information for logged in users. It also sets a cookie when someone leaves a comment on your site.

Apart from these, WordPress plugins can set their own cookies to store different information. For example, WP Favorite Posts plugin shows a user’s favorite posts by storing them in a cookie.

While cookies are extremely useful, they can also be used to collect information about a user and share it with third-party advertising platforms.

This is why in Europe and a few other countries, website owners are required to let users know about their usage of cookies. If your website is based in one of those countries or mainly targets audiences in those regions, then you need to show a cookie consent disclaimer on your website.

Showing a Cookie Consent Notification in WordPress

The first thing you need to do is install and activate the Cookie Consent plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Cookie Consent page to configure plugin settings.


On this page, you can control when and where you want to show the cookie consent notification. You can also select how you would like it to be closed.

In other settings, you can show or hide it for people visiting from specific geographic locations and set an expiration time for the cookie.

The default settings would work for most websites. Don’t forget to click on the ‘Save Changes’ button to store your settings.

Next, you need to switch to the ‘Content’ tab. This is where you can edit the content that will be displayed to your users in the notification.


Here you also need to select your privacy policy page. If you haven’t already created a privacy policy page, then you can follow our guide to create a privacy policy page in WordPress and then select it here.

Once you are done, click on the save changes button to store your settings.

Changing the Appearance of Your Cookie Consent Notification in WordPress

Your cookie consent popup is almost ready. You just need to set up how you would like it to be displayed.

First, you need to visit Settings » Cookie Consent page and then click on the Styles tab.


On this tab, you can choose the position, colors, borders, and style for your cookie consent popup notification. You can also set a container class and then add custom CSS for your popup.

Once you are finished, click on the save changes button to store your settings

We hope this article helped you add a cookie consent popup to your WordPress site.