Cookie law info joomla hosting

Get the Code


Add the code just before the closing tag in your website.

The code will display a floating banner at the bottom of the website informing the user that the site is using cookies and giving them a link to a another website with more information about cookies.

When the user clicks the "✖" button the banner will set a cookie remembering that the banner was acknowledged so the same user will not be bothered again.

hosting

Customization

To make customization as easy as possible you can use following data-attributes:

font-size - text size of the message and the link (default: 14px)
font-family - font family of the message and the link (default: verdana, arial, sans-serif)
text-align - position of the text (default: center)
height - banner height (default: 31 pixels)
fg - banner text color (default: #333)
bg - banner background color (default: #eee)
link - link text color (default: #31A8F0)
divlink - button text color (default: #000)
divlinkbg - button background color (default: #F1D600)
position - banner position, top or bottom (default: bottom)
message - message text (default: We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.)

linkmsg - link text (default: More info)
moreinfo - where the visitor can read more about cookies (default: wikipedia.org/wiki/HTTP_cookie
close-text - the text/symbol for the close button (default: ✖)
effect - effect to use (default: null)
cookie - name for the cookie to store the cookiebanner acceptance information (default: we-love-cookies)
expires - cookie expiry date/time (default is Infinity aka "Fri, 31 Dec 9999 23:59:59 GMT").
cookie-path - Path to set for the cookie
mask - whether to create a mask over the viewport (default: false). Clicking anywhere on the mask is considered as acceptance.
mask-opacity - the opacity to use for the window mask (default: 0.5)
mask-background - optional background style you wish to apply to the mask (default: #999)
zindex - z-index to set on the notice (default: 255). If mask is used, the notice's z-index is automatically incremented by 1 so it appears above the mask)
accept-on-scroll - when is set true window scrolling is considered as acceptance. (default: false)
tracking - Tracking pixel (default: Off - To enable you will need to enter a (image) tracking url or script. Example: www.yourdomain.com/tracking.php?pixel)

Example: The banner will shown as you can see in the Customized Demo.

Further more you can modify the banner appearance (div.cookieinfo) and close button (.cookiebanner-close) via CSS. Please keep in mind that you might have to override and or reset certain properties by using !important CSS rules.

Cookie law info joomla hosting the same user will

Self-hosting: If you don't want to depend on cookieinfoscript.com you can copy the cookieinfo.min.js directly to your site.

You Like the Script?

Please donate and help to cover the Amazon S3 webhosting expenses.

Watch this video!

Related articles

Php set cookie wordpress hostingDescription The Cookie Law is one of the most stupid law in the world. Maybe made by someone, who doesn’t really understand how the web works. Italy Cookie Choices allows you to easily comply...
Eu cookie law joomla hostingHomepage Gavern Framework Gavern framework for Joomla 3.x – Cookie Law Last Updated: July 8th, 2015 Category: Gavern Framework Gavick Fully Supports EU “Cookie Law” A new law came into effect...
Website coming soon page joomla hostingWhen building a website, you may not want random visitors snooping your pages until you are ready for them. Even while some programs allow you to build your site on your local computer and then...
Phpsessid cookie wordpress hostingSessions, Cookies and You. Getting the most cache for your buck. This post is going to walk you through what a session and cookie is, how it works, and how they effect the speed of your...
Akeeba backup pro v3.1.5 for joomla hostingThis is a privacy policy for the Ramblers-Webs Hosting facility. Our homepage on the Web is located at www.ramblers-webs.org.uk/. Ramblers-Webs is run by Ramblers volunteers and funded and...