Complianz Privacy Suite

Customizing the Cookie Policy templates

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

Templating in the Cookie Policy

The Cookie Policy consists of some legal paragraphs, which are generated based on your input in the Wizard, and of the list of Cookies. You can use this list separately from the Cookie Policy by using the shortcode.

But you can also change the html structure of the cookies list to fully customize the output of the cookies description!

To do this, follow these steps:

  1. Using FTP, look up the “templates” folder in wp-content/plugins/complianz-gdpr, or wp-content/plugins/complianz-gdpr-premium if you are a premium user.
  2. Copy the files
    cookiepolicy_cookies_row.php
    cookiepolicy_purpose_row.php
    cookiepolicy_services_row.php
  3. In your theme, create a folder with the same name as the Complianz plugin: “complianz-gdpr(-premium), and copy the files here.
  4. Adjust the files to your liking. You can change all html, and move the {placeholders}. You can even remove the placeholders if you want, just remember that this will also remove that data from your Cookie Policy.
    For example, you will see in cookiepolicy_cookies_row.php the following html:

     

    <tr>
        <td>{name}</td>
        <td>{retention}</td>
        <td>{cookieFunction}</td>
    </tr>

    This is one row from the Cookie Policy, with a cookie name, retention period, and function of the cookie (e.g. storage of consent preferences). 

Recent articles

Subscribe