With new European Union data-protection regulations under GDPR, it is now required to add a notice to your site, informing visitors that the site uses cookies. A script that adds this notice can be generated from various third-party sites and added to the head content section of your site.
When adding CSS or Javascript to change the design or behavior of a Pressero site, please keep in mind that the underlying HTML may change as new features are introduced to the system or changes, such as skin changes, are made to the site.
These can be added easily to a Pressero site, by inserting the code in Settings > SEO & HTML > Edit Head Content.
A sample block of a script from the first site on that list is shown below.
The script block looks like this:
<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": "#eaf7f7",
"text": "#5c7291"
},
"button": {
"background": "#56cbdb",
"text": "#ffffff"
}
},
"position": "top",
"static": true,
"content": {
"message": "Custom Text"
}
})});
</script>
Related Documents:
Article ID: 1365, Created: May 24, 2018 at 4:31 PM, Modified: June 26, 2018 at 5:24 PM