• Mikey B

    (@mikebackhouse)


    Hi,

    I’m looking to not show the notice on a single page as we’re using the page (not linked anywhere on the site) for internal use on a video wall, so will never really be public

    Is there some way of doing this please?

    https://ww.wp.xz.cn/plugins/cookie-notice/

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

    (@jejemo)

    I’m also interested in this.
    I’ve been posting a message 2 times and it has been deleted…

    esmi

    (@esmi)

    @jejemo: If you require assistance then, as per the Forum Welcome, please post your own topic.

    Hi,

    You can use the cn_cookie_notice_output filter to suppress the notice:

    add_filter('cn_cookie_notice_output', '__return_empty_string');
    

    If the page you want the notice to not be displayed has a custom template, place the code in page template php file. Otherwise you have to use is_page or some other means to determine when to apply the filter.

    Greets,
    Česlav

    Thanks chesio. It works great.

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

The topic ‘Block/Remove on certain pages’ is closed to new replies.