Hiding on multiple places
-
i’ve used the code in your documentation and fitted it, but it has not worked for me.
`
function cmplz_my_filter_site_needs_cookiewarning( $cookiewarning_required
) {
$url = is_ssl() ? “https” : “http” . “://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”;//don’t show cookie banner on page where the URL contains the word “listing”
if ( strpos($url, ‘listing’) !== FALSE )
// don’t show on specific Post ID’s – uncomment below
// if ($post->ID==241441 || $post->ID==241442 || $post->ID==241443){
$cookiewarning_required = false;//to disable the cookieblocker, uncomment the following
define(‘CMPLZ_DO_NOT_BLOCK’, true);
}return $cookiewarning_required;
}
add_filter( ‘cmplz_site_needs_cookiewarning’, ‘cmplz_my_filter_site_needs_cookiewarning’ );The page I need help with: [log in to see the link]
- The topic ‘Hiding on multiple places’ is closed to new replies.