• Resolved tobitobsn

    (@tobitobsn)


    Hi! Thanks for the great plugin!
    One question: is it possible to exclude one page from showing the cookie-popup?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aert

    (@aahulsebos)

    Hi @tobitobsn,

    Please follow; https://complianz.io/excluding-pages-from-the-cookie-banner/

    We would recommend using a MU Plugin, a manual can be found here: https://complianz.io/adding-filters-with-mu-plugins-quick-easy/

    Also recommended for any change to your website, a back-up and FTP open to debug.

    Hope this helps!

    regards Aert

    Hi, I tried your code, but the banner is still appearing…

    Plugin Author Aert

    (@aahulsebos)

    Hi @missmikado,

    And if you try the following script, you can change cookie-policy-eu with your own.

    
    <?php
    /* Filter post types for cookiewarning
    It's too early to use global $post or url_to_postid(), so we do a simple text comparison @param $cookiewarning_required
    @return bool
    */
    function cmplz_my_filter_site_needs_cookiewarning( $cookiewarning_required
    ) {
    $url = is_ssl() ? "https"
    : "http" . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
    
    if ( strpos($url, 'cookie-policy-eu') !== FALSE ) {
        $cookiewarning_required = false;
    }
    
    return $cookiewarning_required;
    }
    add_filter( 'cmplz_site_needs_cookiewarning', 'cmplz_my_filter_site_needs_cookiewarning' );
    
    • This reply was modified 6 years, 3 months ago by Aert.
    Plugin Author Aert

    (@aahulsebos)

    Hi @missmikado,

    Did this work out for you?

    regards Aert

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

The topic ‘Exclude one page’ is closed to new replies.