Complianz Privacy Suite

Customizing the blocked content placeholder image

Rogier Lankhorst

Rogier Lankhorst

Categories

Popular articles

Creating the Legal Hub

Have you seen our new Legal Hub? If not, have a look before reading this instruction article. We created the legal hub to centralize our

Read More

Placeholders for iFrames

From 4.6.11 onwards, you can also use consent shortcode wrappers. An instruction can be found here. You’re able to block iFrames with Complianz with the

Read More
Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

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;
}

Recent articles

Subscribe