A simple way to show the 'cookie' warning
The European Union, apparently, has a cookie law . This "requires websites to get consent from visitors to store or retrieve" cookies. There are some tools out there that allow you to add this message, but it's really simple to do this yourself with a little bit of Javascript. The first thing to do is to add a <div> to your template's <body> < div id= "cookie_warning" > We use third party "cookies" for ... < input type= "button" value= "Accept" onclick= " javascript:cookies(true); " /> < input type= "button" value= "Deny" onclick= " javascript:cookies(false); " /> </ div > Next, we add a new rule to our .css file #cookie_warning {display: none } We don't want to show this warning when people have Javascript deactivated. Let's stop our cookies from travelling. Encapsulate the cookie code in a function: functi