current-year
.To dynamically display the current year in your Webflow footer, you'll need to use a small snippet of JavaScript since Webflow doesn't have a native dynamic date feature.
current-year
, so you can target it with JavaScript.Go to Page Settings (for specific pages) or Project Settings > Custom Code > Footer Code (for all pages).
Paste this JavaScript snippet into the Before
tag section:
This code finds all elements with the class current-year
and updates their content to the current year when the page loads.
Insert a text element with a unique class like current-year
in your footer, then use a JavaScript snippet (in Custom Code) to populate it dynamically at runtime. This ensures the current year updates automatically every new calendar year.