Title: Reject button does not work
Last modified: September 20, 2022

---

# Reject button does not work

 *  Resolved [af7567](https://wordpress.org/support/users/af7567/)
 * (@af7567)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reject-button-does-not-work/)
 * When clicking the reject button, the cookie “viewed_cookie_policy” is set to “
   no”. This causes the cookie bar to not be displayed on the next site visit because
   in the javascript code it only checks if the cookie exists and not if it is set
   to yes or no.
 * from public/js/cookie-law-info-public.js:
 *     ```
       if (!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) {
                                       CLI.displayHeader();
       ```
   
    -  This topic was modified 3 years, 9 months ago by [af7567](https://wordpress.org/support/users/af7567/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/reject-button-does-not-work/#post-16042795)
 * Hi [@af7567](https://wordpress.org/support/users/af7567/),
 * Greetings from Webtoffee!
 * This sort of behaviour is typical. The value of “viewed cookie policy” is saved
   once you select Reject or Accept in the cookie bar. The visitor will only see
   the banner when this cookie expires, which is in 365 days.
 * We have a choice in the plugin settings called “Revisit consent” that you may
   select if you wish to give site visitors the option to change their mind about
   giving their approval. You may turn it on by going to **GDPR Cookie Consent >
   Settings > Customise Cookie Bar > Revisit Consent**. This will enable the banner
   to return simply clicking a little widget at the bottom of the website.

Viewing 1 replies (of 1 total)

The topic ‘Reject button does not work’ is closed to new replies.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/reject-button-does-not-work/#post-16042795)
 * Status: resolved