qw3rtty / grav-plugin-simple-cookie

The Simple Cookie Plugin is an extension for Grav. The plugin is based on the popular CookieConsent JS-library. For Advanced Opt-In/Opt-Out configurations you can use the 'Custom configuration' option.
MIT License
8 stars 2 forks source link

"Cookie Policy" Banner always visible on Mobile Devices #4

Closed HyknuF closed 4 years ago

HyknuF commented 4 years ago

Hi, first of all, thanks for your great work.

I've set up a website with grav and your cookie banner plugin. After Click on "OK", on mobile devices, the "Cookie Policy" Banner doesn't hide like on desktops. (->Screenshot) I haven't found any setup switches. Is there a solution/workaround? Beside that, is it possible to rewrite the label into german?

On desktop, the banner auto-hide fine.

Thanks in advance!

Screenshot_Cookie-Policy

qw3rtty commented 4 years ago

Hi @HyknuF i will check it out. I will let you know when i got a solution.

HyknuF commented 4 years ago

Thanks for your fast response! (Both threads)

Kind regards

qw3rtty commented 4 years ago

@HyknuF This "mini banner" is a advanced option of cookie consent. It's for revoke the choosed options for the user.

Here is a link for more informations: https://www.osano.com/cookieconsent/documentation/javascript-api/#revoke_options

So please use the "Custom config" section of the plugin to disable it. Hope this will work for you.

HyknuF commented 4 years ago

Thanks for reply as well. I will check that out. The docu seems to be quite useful.

HyknuF commented 4 years ago

Hi, sorry I honestly have to admit, that I didn't figured out how to implement the custom strings? Could you give me some advice? Thank you very much in advance!

qw3rtty commented 4 years ago

@HyknuF You don't have to apologize. :) I don't know, what you want to do exactly but i think you want to disable/remove the "mini banner" to revoke the settings.

The correct format for the "Custom config" field is an JavaScript-Object which can be encode/decode to an JSON string.

Here is an working example (it will remove the "mini banner"): {"revokable":false, "revokeBtn": "<a></a>"} You can just copy and paste this line into the "Custom config" field.

To show both Buttons, you have to choose the Opt-In/Opt-Out option of the "Compliane" select field.

HyknuF commented 4 years ago

@thomasschwarz96 thanks for explaination! I think, it worked out :-)