Title: Hide Notice With Javascript
Last modified: September 27, 2022

---

# Hide Notice With Javascript

 *  Resolved [voelgoed](https://wordpress.org/support/users/voelgoed/)
 * (@voelgoed)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/hide-notice-with-javascript/)
 * Good day
 * We are using a query string to hide certain elements on our website.
 * We are unable to hide the notice with the Javascript we use to trigger the hide
   option as with other elements.
 * Is there perhaps a workaround to stop the notice from showing that we can use?
 * Kind regards

Viewing 1 replies (of 1 total)

 *  Plugin Author [DAEXT](https://wordpress.org/support/users/daext/)
 * (@daext)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/hide-notice-with-javascript/#post-16050136)
 * Hello voelgoed,
 * you can close the cookie notice by associating the “Accept Cookies” or “Close
   Cookie Notice” actions with the **Button 1 Action**, **Button 2 Action**, or **
   Button Dismiss Action** options available in the **Options -> Cookie Notice**
   menu.
 * With JavaScript you can set the `daextlwcnf-accepted` cookie to “1” and if needed
   instantly remove the notice from the DOM with the `#daextlwcnf-cookie-notice-
   container` selector.

Viewing 1 replies (of 1 total)

The topic ‘Hide Notice With Javascript’ is closed to new replies.

 * ![](https://ps.w.org/lightweight-cookie-notice-free/assets/icon.svg?rev=2822220)
 * [Lightweight Cookie Notice - Cookie Banner for Cookie Consent](https://wordpress.org/plugins/lightweight-cookie-notice-free/)
 * [Support Threads](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/)
 * [Active Topics](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightweight-cookie-notice-free/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [DAEXT](https://wordpress.org/support/users/daext/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/hide-notice-with-javascript/#post-16050136)
 * Status: resolved