Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Leon Wimmenhoeve

    (@leonwimmenhoeve)

    Hi @mediaweapon,

    With disabling consent, do you mean disabling the cookie banner? Or preventing Complianz from blocking scripts on the particular page?

    To disable the cookie banner on specific pages, you can use this filter:

    add_filter('cmplz_site_needs_cookiewarning', 'cmplz_my_filter_site_needs_cookiewarning');
    function cmplz_my_filter_site_needs_cookiewarning($cookiewarning_required){
      if (12345==url_to_postid(esc_url_raw((is_ssl() ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"))) $cookiewarning_required=false;
      return $cookiewarning_required;
    }

    Replace 12345 with your postID. For a more detaled description on this subject, please refer to our article.

    If you would disable the cookie blocker for specific pages please let me know. It would be convenient to have a link to the site and page you want to exclude.

    Kind regards,
    Leon

    Thread Starter mediaweapon

    (@mediaweapon)

    Thanks, thats what i was looking for.

    • This reply was modified 4 years, 6 months ago by mediaweapon.
    Plugin Contributor Mathieu Paapst

    (@paapst)

    • This reply was modified 4 years, 5 months ago by Mathieu Paapst. Reason: wrong topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Consent on specific page’ is closed to new replies.