Title: Feature request: Close button
Last modified: April 25, 2022

---

# Feature request: Close button

 *  [christian70](https://wordpress.org/support/users/christian70/)
 * (@christian70)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/feature-request-close-button/)
 * Hi again.
    I’d like to suggest you to implement a X (close button) in order to
   close the popup and refuse unnecessary cookies. This is mandatory in Italian 
   Law. Fow not, I’ve fixed by adding the button manually (via JS) and triggering
   the ‘Confirm choice’ button click.
 * And, I’ve got another question, sorry:
    how long is the duration of the consent
   cookie saved in visitor’s browser? I can’t get any info about that in documentation.
   Is there any possibility to set it? I see the select options for the consent 
   logs but anything on client side…
 * Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [christophrado](https://wordpress.org/support/users/christophrado/)
 * (@christophrado)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/feature-request-close-button/#post-15589685)
 * Hey there,
 * thanks for the suggestion, I’ll put that on the list. A proper “refuse” option
   is indeed something that would make sense.
 * Note that the “Confirm choice” option will confirm the selected cookie categories.
   Using this is not a proper “Deny all” as of now.
 * The cookie lifetime is set to 30 days – this is a fixed value at this point (
   [relevant code](https://plugins.trac.wordpress.org/browser/cookie-notice-consent/tags/1.5.1/js/front.js#L131)).
   I guess it would make sense to at least run this through a filter though. I’ll
   make a note of this as well.
 * Thanks!
 *  Thread Starter [christian70](https://wordpress.org/support/users/christian70/)
 * (@christian70)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/feature-request-close-button/#post-15594992)
 * Hi,
    according to the Law, I think that the X close button should have the same
   function as ‘Accept only necessary cookies (with or without consent)’ more than‘
   Refuse’ option. Refuse all cookies is not possible (and not necessary for essential
   cookies).
 * Thanks.
 *  Plugin Author [christophrado](https://wordpress.org/support/users/christophrado/)
 * (@christophrado)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/feature-request-close-button/#post-15595049)
 * Yeah, that’s how I would have planned it to work as well. Essential cookies are
   always active.
 * The difference between “Confirm choice” and “Refuse” would be that “Refuse” would
   not respect any activated checkboxes. That’s what “Confirm choice” does right
   now. That’s why I mentioned it being a different functionality and not just a
   plain copy of “Confirm choice”.
 *  Thread Starter [christian70](https://wordpress.org/support/users/christian70/)
 * (@christian70)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/feature-request-close-button/#post-15595075)
 * Perfect.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Feature request: Close button’ is closed to new replies.

 * ![](https://ps.w.org/cookie-notice-consent/assets/icon-256x256.png?rev=2471736)
 * [Cookie Notice & Consent](https://wordpress.org/plugins/cookie-notice-consent/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice-consent/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice-consent/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice-consent/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice-consent/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice-consent/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [christian70](https://wordpress.org/support/users/christian70/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/feature-request-close-button/#post-15595075)
 * Status: not a support question