Meet Google’s consent requirements for EU, UK, and Switzerland with our Google-certified CMP for WordPress Buy Now

Home > Docs > GDPR Cookie Consent(Legacy Version) > Hide the Cookie Bar on Selected Pages Using GDPR Cookie Consent Plugin

Hide the Cookie Bar on Selected Pages Using GDPR Cookie Consent Plugin

Last updated on May 8, 2023

The following code snippet allows you to hide the cookie bar created by GDPR Cookie Consent (CCPA Ready) plugin on selected pages of the website or any wildcard URL entry. Simply add the code snippet to the active child theme function.php and enter the slug of the pages in the array() function on which you want to hide the cookie bar.