You might want to change your Cookie Banner Read more URL or have your own placeholders when using Complianz. To edit some features of Complianz you will need to apply some extra code to your WordPress installation. Below we will explain how you can use so-called Must-Use plugins to apply these filters.
Do you want to know which functionalities you can add to Complianz? Visit our overview of the functionalities and code snippets.
How to implement filters with Must-Use plugins.
Must-Use plugins, in short, is a folder in WP-Content called ‘mu-plugins’ which is a collection of files which are activated by default and cannot be deactivated in your WordPress dashboard. These files will stay put and activated even if you’re updating your WordPress installation or theme.
If you don’t have a mu-plugins folder in wp-content, you can add the folder under wp-content without problems. The directory will look like */wp-content/mu-plugins/
To add a filter described in our overview you can simply copy/paste the code to your favorite text editor and change the variables as described in the code. For example:
* Filter Cookie banner settings
* @param array $output
* @return array $output
$output['readmore_url'] = 'my-new-cookie-policy-url';
Saving your new filter and uploading it with FTP
- After editing the filter, save your file ending with .php. For example readmoreurl.php
- Upload readmoreurl.php to wp-content/mu-plugins/ via FTP
- Check your Cookie Banner if the URL has changed.
Not sure what to add in the variables? Ask support, we are happy to help!