How to display WordPress cookie notice without a plugin

 WpWebGuru - Learn WordPress


In this article, we will learn the best way to show a WordPress cookie notice without any help of plugins. Lets move further!


For what reason do we need a cookie notice on our blog or website? 

You may all know that cookies gather clients' data and store them for a specific timeframe, revelation of the utilization of cookies on your site or blog is needed by EU cookie law. It is an European Union order that requests that any site gets consent from its guests about the utilization of their information. 


Additionally, adding a cookie notice to your WordPress site or blog doesn't cost a penny and is not difficult to carry out! 


Also, It doesn't make any difference if your site is situated in Europe, odds are that EU guests are as yet seeing it, so EU cookie can turn into the subject of law. Its better to put a notice on your site or blog about collecting information of your visitors. 


Follow the instructions to show WordPress cookie without a plugin

Adding superfluous plugins to your WordPress website or Blog can slowdown your site speed. In this manner, it is savvy to restrict plugin installation and change everything physically if conceivable for you.


Follow these simple steps:

1. Visit the Website Policies to generate the Cookie notice code from it.


2. Go to the Configuration wizard section and personalize a cookie notice template by adjusting its position, you will see 2 styles as Tooltip and Bar, Choose where you would like to display it 


Bottom left - Bottom right - Top left - Top right


cookie consent banner


3. Once you have decided the position of your banner and style. Now, move to the Layout and decide what style you need in the following and change the style of each option from the drop down options.



4.  Choose the color palette or specify your own colors for your Banner.




5. Now you need to put your cookie policy link or URL in the box, if you don't have a cookie policy? Create one now, it's free! from the option is given.


6. Customize the text that will display on the cookie consent banner or you can use default text.



7. It is done now, you have you auto generated code for your cookie banner. Copy the code below and paste it to the header of your website, just above the </head> tag.



Don't forget to paste the URL of your Cookie Policy in the Configuration Wizard.


8.  This Step is very import to do as you need to past the copied code in to your theme in the <head> section.


9. You need Log in to your WordPress dashboard and navigate to Appearance -> Theme Editor.


10. Locate header.php file under Theme Files.


11. Open the file and paste the code before the </head> tag. 


12. Click on Update File to save your changes.


There you go!! You’ve now learned how to display WordPress and your website or blog is ready to show Cookie Banner to their visitors. 


How to install WordPress Locally with XAMPP on Windows 10?

Best E-Commerce Templates 2021 

Comments