Scripts

These helpful scripts extend the functionality of Webflow.

Current year replacement

This code, created by Sam Liew, will fill any div or span with the class Copyright Year with the current year.

Tip: Since this effect doesn't show in the Webflow Designer, it's good to use 20xx as the content of the div/span so that it can be easily identified on the live site where the Copyright Year class hasn't been added.

Note: This method is preferred to other methods because it will replace multiple dates on the same page.

Example
The year is 20xx.