Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reject all Cookies Button #140

Closed
petereberlecom opened this issue Jun 26, 2024 · 1 comment
Closed

Reject all Cookies Button #140

petereberlecom opened this issue Jun 26, 2024 · 1 comment

Comments

@petereberlecom
Copy link

Hi, is there a way to reject all cookies, similar as accept all cookies?

I couldn't find it in the settings object

cheers

@MontiMarco92
Copy link
Collaborator

Hi @petereberlecom . Yes there is a showRejectAllButton setting you can add to the config object and set it to true:

window.CookieConsent.init({
    modalMainTextMoreLink: null,
    UITimeout: 1000,
    // Show the 'reject all cookies' button. It's false by default.
    showRejectAllButton: true,
    ... // rest of config
})

Screenshot from 2024-07-17 08-45-01

I'm going to update the Readme so it's clear this option exists.

Hope this helps.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants