Set your footer copyright to automatically update

A previous version of this script used document.write. Chrome sometimes likes to block that method, and Firefox will throw warnings if not outright block it. We've updated the script to use a JQuery method that's better supported by all browsers.

If you're using the Minimalist theme, your knowledge base by default displays a footer with a copyright year.

The years used will depend on when you created your knowledge base and whether you've manually edited it.

For example, if you've created your knowledge base recently, the default Custom HTML for your knowledge base's footer will set the Copyright to: Copyright © 2021 - 2022 Your Company, LLC. All rights reserved.

You might choose to keep this range or set it to the current year.

While you can manually edit the current or ending year, that can be a bit of a pain to remember to update. Here's a quick custom HTML change you can add to make it so you never have to update your copyright year again.

Note: this script will not work in the PDF Footer for Settings > Individual PDFs.
  1. Go to Settings > Style.
  2. Under the preview pane, be sure Custom HTML is selected.
  3. In the Custom HTML  section, be sure Body is selected from the dropdown.
  4. You should see something like this:

  5. Copy the code below and paste it into the bottom of the Custom HTML Body template:
    <script>
      $('#spanYear').html(new Date().getFullYear());
    </script>
  6. Once you've done that, find the year portion of your copyright statement that you'd like to autoupdate. In the example above, it's the "2021" portion of our statement. Replace that year with this code:
    <span id="spanYear"></span>
  7. You can Preview Changes to see how things look.
  8. Once you're happy with how they look, be sure to Save your changes.

So here's what the footer above might look like if we chose to keep the range:

And here's what it might look like if we removed the range and kept it to a single year: