How to customize the blocked content placeholder image

Ask support if you need any assistance!

Rogier

Rogier

Senior Developer

Categories

Most Popular Articles

Subscribe to our newsletter

    For EU Subscribers | Privacy Statement
    For USA Subcribers | Privacy Statement

  • This field is for validation purposes and should be left unchanged.

Complianz GDPR cookie consent will block content from third party services like Youtube, Facebook, Linkedin, etc, to prevent these services from placing tracking cookies.

The consequence is that there will be an empty space in your site where the video or other content usually is. For services like Youtube, Vimeo or Dailymotion we have integrated a system where the plugin pulls a screencapture of the video, and shows it instead.

For other services a placeholder is shown. The default placeholder is this image:

It’s on the to do list to be able to choose the placeholder image in the settings, but right now you can do this by adding the following code to your theme’s functions.php:

add_filter('cmplz_default_placeholder', "cmplz_my_placeholder");
function cmplz_my_placeholder($placeholder_url){
    $placeholder_url = 'https://your-domain.com/your-image.png';
    return $placeholder_url;
}

© Copyright - Complianz 2019
×

Complianz Privacy Suite 3.1 is live!

See our new features and available documentation. Read more