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 February 10, 2025

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.