What's WP
Find Everything Related to WordPress - Best Tutoriasl on WordPress!
How to Add a Cookies Popup in WordPress

How to Add a Cookies Popup in WordPress

Almost every website uses cookies to track visitors’ information when they are browsing pages or posts via their computers, telephones, and tablets. To safeguard online privacy, the Cookie Law is released to regulate the use of cookies.

In this case, you are required to implement a cookie usage solution, making sure that your WordPress website is in compliance with this directive. In the following sections, we introduce briefly about the Cookie Law to guarantee you with an in-depth understanding of it in the first place. Then, we will detail two methods to help you add a cookies popup in WordPress.

Brief Introduction to the Cookie Law

In short, the Cookie Law is a piece of privacy legislation, requiring websites to store or retrieve any information on the premise that visitors have granted their consent. This legislation is adopted by all EU member countries, which means that if your website is owned in the EU or targeted towards EU visitors, you have to comply with it.

At present, almost every browser has a setting of “Accept” or “Deny” cookies choices to ask for consent. However, this is not enough to make your website rest assured. You need to make some changes, which to be more specific refers to inform visitors about how you use cookies and give them the rights to control over their privacy.

How to Add a Cookies Popup in WordPress?

Creating a cookies popup is a non-intrusive way to make websites comply with the cookie legislation without hindering the visitors’ overall browsing experience. Once the visitor has assumed the consent, the cookies popup will disappear and never be seen again in a second visiting.

Our editors have picked out two commonly-used plugins to help you add a cookies popup without bothering yourself with any complicated configurations. With these plugins, you are able to customize many aspects of a cookies popup, such as its content and location.

It is worth noting that adding a link to content of the cookies popup is a good practice, which enables you to redirect the visitor to multiple alternative pages of your site. A good example is to add a privacy policy link. If you already have a privacy policy in action, please feel free to proceed. If not, we sincerely recommend you read our tutorial about how to create a privacy policy in advance.

Method 1 – Use Easy WordPress Cookies Popup Plugin

At first, install and activate the Easy WordPress Cookies Popup plugin. If you are new to this process, refer to our guidance on how to install WordPress plugins.

Activate the Plugin

Upon activation, go to “Cookie Notification” > “Settings”. Shown as below, you are able to edit the notification message that your visitors will see when they access your site. Also, you can choose a position for the cookies popup to display it on the top or bottom of visitor pages. Remember to click the “Save Changes” button to enable your settings.

Set the Cookie Notification

This is a quick and easy way to add a cookies popup to your site. After saving all your changes, go to your website and you will see the popup presented as below.

Easy WordPress Cookie Popup

Method 2 – Use Cookie Notice by dFactory Plugin

The second plugin – Cookie Notice by dFactory provides you with more well-designed options than the first one. In the very beginning, what you need to do is to initialize it before proceeding to the following operations.

Then go to “Cookie Notice” > “Settings”, where multiple options are accessible. In the “Configuration” section, you have a full control over the content of the cookie notice message. Whatever contents you are going to add, remember to tailor your wording and expressions to ensure that visitors are able to understand it easily in a pleasant manner.

Edit the Cookie Notice Message

This plugin grants you the capability to customize the buttons on the cookies popup that enable users to accept or deny the use of cookies. Also, you can add a “Read More” button to this popup by checking the box next to the “Enable read more link” option. With this option, you can redirect your visitors to an alternative page by simply entering a new link or selecting an existing page of your site.

Customize the Buttons in Popup

Besides, this plugin comes with more excellent options, among which “Enable cookie notice acceptance when users scroll” should be the most helpful one. All you need to do is check the following box and set the number of pixels that visitors have to scroll to grant their consent to the use of cookies.

More Excellent Options

As for the “Design” section, it is the place to select a location for your cookies popup and set an animation effect for it to disappear upon visitors’ acceptance. It is also possible to choose a button style and a color scheme for your custom cookies popup.

Design Section

In the final, hit the “Save Changes” button and you are done. Now, you can check the cookies popup in action on your website.

Cookie Notice by dFactory

On the Bottom

Since there are many other powerful plugins available over the Internet, the plugins that we have detailed here are only two typical examples. It totally lies with you to decide which one to use regarding their usability and accessibility. Hopefully, this beginners’ guide can help you add a satisfying cookies popup, making your site in compliance with the EU legislation.


Zoe is a freelance writer who has a deep knowledge about WordPress. She loves everything related to website building and loves to share her experience with people all over all the world. In the daily life, Zoe loves detective novels as it can train her logical thinking and creativity.