Streaming live at 10am (PST)

Timestamp the year in footer where copyright is?



Using Webflow, what would be the best way to set up a timestamp for the year next to the copyright symbol?
(so that year auto-updates)

Thank you.


Paste this in Site Settings > Custom Code > Footer Code

Webflow.push(function() {
  $('.copyright-year').text(new Date().getFullYear());

To create an inline span in a paragraph or text block, select the text and click the 4th menu item.

Now give a class copyright-year to that span that you want to display the current year.

Publish and view the site in your web browser (this doesn’t work in your designer preview)

closed #3

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.