We'll show you how to edit the Cookie Consent config code to link your Impressum from the notice banner text.

Our example video assumes that you have already implemented the Cookie Consent solution on your websites. If not, create it first.

In this example, we'll use a website powered by WordPress. If your website uses a different CMS, the steps remain roughly the same:

  1. Create a Cookie Consent Notice Banner using our Free Cookie Consent tool.
  2. Edit the cookie consent config file from the theme footer file to add 2 new params.

Let's get to it step by step:

  1. To add your Impressum to the banner text, go to your dashboard or where the Cookie Consent code has been added.

  2. Select "Appearances" and go to "Theme File Editor:"

  3. From the "Theme Files", select the "footer.php" file to open it:

  4. Edit the config code of the Cookie Consent:

  5. Add 2 new params:

    • A STRING parameter that sets the URL to the Impressum page: "website_impressum_url"
    • A BOOLEAN parameter to show the Impressum link in the notice banner text only: "notice_banner_insert_legal_urls" is true.

    The whole config edit should look like this: "websie_impressum_url":"https://termsfeed.com","notice_banner_insert_legal_urls":true

    See the example below:

  6. Click the "Update file" button to save changes:

  7. Visit your site to see changes:

  8. Your Cookie Consent Notice Banner text is updated with the Impressum link: