An Important Update

Dear Followers Of This Blog ...

If you did not use a Blogger / Google account when you Followed this blog, years ago, you are probably not Following now . During the past...

Saturday, October 31, 2015

EU Cookie Compliance, October 2015

We've had the Google CookieChoices banner in our blogs - thanks to the European Union cookie privacy issue - since April 2015.

Not all blog owners - even those in Europe, where its presence may be required by law - appreciate what Google provided for us. The banner clutters up many templates, making our blogs more busy looking. In some cases, it may hide - or be hidden by - important blog components.

There are several ways of customising the banner, to make it more acceptable - that are not too difficult to use.

Different blog owners have different blog designs, which may not work with the CookieChoices banner at the very top of the screen. There are different solutions, to handle the banner.

  • Push the CookieChoices banner, below the menu / navbar.
  • Move the CookieChoices banner, to the bottom of the screen.
  • Force the CookieChoices banner to display on top of the owner content.
  • Disable the CookieChoices banner.

Push the CookieChoices banner below the menu / navbar.

The most obvious is to increase the top margin of the cookiechoices banner, and push the banner down. Simply add one custom CSS rule, using the Template Designer "Add CSS" wizard.

#cookieChoiceInfo {
margin-top:50px;
}

50 px is the normal amount of vertical space used by many menu bars. If your template has a menu bar at the top, you may need to adjust the size as necessary.

Move the CookieChoices banner, to the bottom of the screen.

Alternately, you may prefer to reposition the banner, at the bottom of the screen.

#cookieChoiceInfo {
bottom: 0;
top: auto;
}

Force the CookieChoices banner to display on top of the owner content.

A third choice is to force the banner to display on top of the content - as it does, normally, with the Blogger navbar.

.cookie-choices-info {
z-index: 99999999;
}

With all 3 solutions, insert either code block in "Add CSS" with a blank line separating it, from any previous CSS rule.

Disable the CookieChoices banner.

A fourth choice - if you really need - is to disable the banner. This requires that you add a script, just after the "<Head>" tag. You'll use Template Editor, to install this tweak.

As always, please backup the template - before and after making this change.

<Head>
<script type="text/javascript">
cookieChoices = {};
</script>


You'll hopefully do this, just before adding a third party banner - which may be more to your tastes.

There are still more possibilities, to improve the banner, on your blog.

Start with Blogger Help: Cookies notification in European Union countries.

Also, you'll find suggestions in How to style, change or disable the Blogger EU Cookie Notice.

The bottom line.

Verify the results of your changes, by careful testing. Done properly, these solutions will keep your blog in compliance - and hopefully help you to avoid an all expenses trip (one way) to the Euro Capital City of your nightmares.

Dude, hit me with a comment!

Rosa Rubicondior said...

Is there any way to customise the banner itself, font-size, colours, even wording?

Chuck Croll said...

Hi Rosa,

Thanks for the question.

Yes, there are more CSS rules for changing both formatting and wording of the banner.

Start with Cookies notification in European Union countries.

Also, you'll find suggestions in How to style, change or disable the Blogger EU Cookie Notice.

Gracey said...

Thanks for sharing these extra tips. I for one am glad that Blogger actually provided the "basic necessity", but having the information available for customizing is really useful.

Rosa Rubicondior said...

Thank you.