orestbida / cookieconsent

:cookie: Simple cross-browser cookie-consent plugin written in vanilla js
https://playground.cookieconsent.orestbida.com/
MIT License
4k stars 410 forks source link

Is it possible to add new section top of modal. #57

Closed mmustafau closed 3 years ago

mmustafau commented 3 years ago

Hi, thanks for this job. It is very useful.

I want to ask that can we add new section next to the Coooki Setting at the top of the modal.

I want to add Cookie policy text in a new page. Is this possible or not.

Thanks for your great work.

orestbida commented 3 years ago

Hi @mmustafau,

If I understand correctly, you want to add some kind of "tabs" support?

Unfortunately this is not possible with this cookie consent plugin. The only way to achieve this would be to manually inject html into the cookieconsent and manage the tabs via custom javascript which would hide/show the interested sections.

mmustafau commented 3 years ago

thank you for all support.

costafrancesco94 commented 2 years ago

I think he intended to add a block between title and blocks...

I wanted a place to put another "description" after the title before the blocks section.

I also noticed there is nothing (except putting a link in the description of consent_modal) to link the privacy policy page.

A simple link is enough to be fully compliant with GDPR, not talking about modals or something like that.

would a description on the settings_modal be something easy to implement?