Home

Copyright year that updates itself

Copy one of these snippets into your footer and the year changes on January 1 without you touching it.

© 2026 Rivertown Pottery. All rights reserved.

The year in the line above is live. It is read from your device’s clock.

HTML and JavaScript

Works on any website. Paste it where the footer text goes.

<p>&copy; <span id="copyright-year"></span> Your Name. All rights reserved.</p>
<script>
  document.getElementById("copyright-year").textContent = new Date().getFullYear();
</script>

With a start year

Shows a range such as 2021–2026, which tells visitors how long the site has been running.

<p>&copy; 2021&ndash;<span id="copyright-year"></span> Your Name</p>
<script>
  document.getElementById("copyright-year").textContent = new Date().getFullYear();
</script>

PHP

For any PHP site. The year is written on the server, so it works with JavaScript switched off.

<p>&copy; <?php echo date('Y'); ?> Your Name. All rights reserved.</p>

WordPress theme

Goes in footer.php of a child theme. Many themes, including GeneratePress, also have a footer setting that accepts a year tag.

<p>&copy; <?php echo esc_html( date_i18n( 'Y' ) ); ?> <?php bloginfo( 'name' ); ?></p>

Shopify (Liquid)

Goes in footer.liquid.

<p>&copy; {{ 'now' | date: '%Y' }} {{ shop.name }}</p>

React and Next.js

Inside any component.

<p>&copy; {new Date().getFullYear()} Your Name</p>

Hugo

The year is set when the site is built, so rebuild once in January.

<p>&copy; {{ now.Year }} {{ .Site.Title }}</p>

Jekyll

Also set at build time.

<p>&copy; {{ 'now' | date: '%Y' }} {{ site.title }}</p>

Which year belongs in a copyright footer?

The year in a copyright notice is the year the work was first published. A website is published continuously, so the convention is the current year, or a range from the year the site launched to the current year. Both are fine.

An out-of-date year does not weaken your copyright. Protection does not depend on the notice at all. What it does is make a site look abandoned, which is the practical reason to automate it.

The full notice

A complete notice has the symbol, the year and the owner: © 2026 Rivertown Pottery. “All rights reserved” is optional. Our copyright notice generator builds the line for you, and the notice format guide covers the variations.

Common questions

Do I have to update the copyright year on my website?

No law requires it, and your copyright is not affected if you do not. People do read a stale year as a sign the site is neglected, so it is worth keeping current.

Should I use a single year or a range?

Either. A range such as 2021–2026 shows how long you have been publishing. A single current year is simpler. Do not drop the first year if you registered or first published the content then.

Does the JavaScript version hurt SEO?

No. Search engines render JavaScript, and the year in a footer is not a ranking signal either way. Use the PHP or build-time version if you want the year in the page source.