Just to copy paste the below part of code in your blogger template's html code right above </head>. I'll show how to do find it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" /> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script> | |
<script> | |
window.addEventListener("load", function(){ | |
window.cookieconsent.initialise({ | |
"palette": { | |
"popup": { | |
"background": "#000" | |
}, | |
"button": { | |
"background": "#f1d600" | |
} | |
} | |
})}); | |
</script> |
- Log into your blogger dashboard. Select Theme from the left pane.
- Click Edit HTML.
- Now HTML editor opens. Click anywhere in the editor preferably white space and hit Ctrl+F. Did you figure out why do you need to click inside HTML editor ?. We need to search for tag </head>. If you hit Ctrl+F without clicking inside editor you are searching the webpage not the code inside the editor. So do it.
Note: Before editing HTML template, don't forget to back it up.
- Search for the tag </head> and paste the below chunk of code just above it. If you not cautious you could mess up your template, So keep it in mind.
Great you did it. do you want to see the notification looks like ? then go to Europe :) just kidding. just change the .com in your blog url to .co.uk.
Ex: www.geekinlinux.blogspot.co.uk and hit enter
There you are. See how nice you done. You blog now prompting visitors to click ok to use cookies.
0 Comments