---
title: "How to Automatically Update Your Website's Footer Copyright Year"
description: "Want to learn how to update your website's footer copyright year automatically? This copy and paste code snippet is for you!"
url: "https://thechurchfactory.com/how-to-automatically-update-your-websites-footer-copyright-year/"
image: "https://thechurchfactory.com/_astro/cover.Dubzj9gv_1mURzG.jpg"
published: "2022-01-03T14:10:00.000Z"
---

[Websites](https://thechurchfactory.com/topics/websites/) · Jan 3, 2022 · 2 min read

# How to Automatically Update Your Website's Footer Copyright Year

Want to learn how to update your website's footer copyright year automatically? This copy and paste code snippet is for you!

Mackenly Jones

![](https://thechurchfactory.com/_astro/cover.Dubzj9gv_ZlbBrD.webp)

[Photo by Danil Aksenov / Unsplash](https://unsplash.com/@nebe3etogo)

Every year countless website owners log into their dashboards to update their website footer with a new copyright year like this one:

![](https://thechurchfactory.com/_astro/image-16.Pc851NfN_2g21cG.webp)

Screenshot of thechurchfactory.com’s Footer

If you haven’t already now is the perfect time to make it dynamic with JavaScript! (😱 Don’t worry, it’s copy and paste ✂)

To do that we’re going to drop in a bit of JavaScript. If you haven’t heard of it before, JavaScript is a coding language that’s used to “script” things in web browsers. It can be added virtually anywhere that allows you to insert HTML.

Let’s break down what the following code does:

-   Opens the “<script>” tag to tell the browser we’re giving it some JavaScript
-   Defines a new constant that contains the current date on the user’s device
-   Write or prints the full year as text
-   Closes the script tag by saying “</script>” so that the browser knows to start displaying your regular webpage again

Pretty simple, right?

If you just want to copy and go here’s the code to do that (just hover over the code and press the “copy” button 🖱), but I’m going to share a few more examples in a moment…

```javascript
<script>
    const copyrightDate = new Date();
    document.write(copyrightDate.getFullYear());
</script>
```

![
“Talk is cheap. Show me the code.”
― Linus Torvalds](https://thechurchfactory.com/_astro/photo-1607799279861-4dd421887fb3.CRM_aI18_Zcgt9s.webp)

Photo by [Mohammad Rahmani](https://unsplash.com/@afgprogrammer?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit) / [Unsplash](https://unsplash.com/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit)

## With a Business Name

You may also want to display your church name like this:

`Copyright Acem Inc. 2026`

If so just copy this and replace Acem Inc. with your chosen name. The quotes are necessary so don’t remove the quotes. 🙂

```javascript
<script>
	const copyrightName = "Acem Inc.";
    const copyrightDate = new Date();
    document.write("Copyright "+ copyrightName + " " + copyrightDate.getFullYear());
</script>
```

## With an Emoji

Maybe you want to use an emoji! © Just insert © and you’re good to go!

`© Acem Inc. 2026`

Or copy this example:

```javascript
<script>
	const copyrightName = "Acem Inc.";
    const copyrightDate = new Date();
    document.write("&copy; " + copyrightName + " " + copyrightDate.getFullYear());
</script>
```

## With All Rights Reserved

Some websites also want to show All Rights Reserved. It’s open for discussion if adding it actually provides any legal protection or not. But you may choose that it’s better safe than sorry!

`Copyright Acem Inc. 2026 | All Rights Reserved`

And here’s the code! 👩‍💻

```javascript
<script>
	const copyrightName = "Acem Inc.";
    const copyrightDate = new Date();
    document.write("Copyright "+ copyrightName + " " + copyrightDate.getFullYear() + " | All Rights Reserved");
</script>
```

![UI Wireframe Saturday](https://thechurchfactory.com/_astro/photo-1523726491678-bf852e717f6a.DWLf86iV_FH5u5.webp)

Photo by [Med Badr Chemmaoui](https://unsplash.com/@medbadrc?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit) / [Unsplash](https://unsplash.com/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit)

## Footer Design Inspiration

For some more creative footer designs, head on over to this Awwwards post which highlights [25 Excellent Creative Website Footers](https://www.awwwards.com/15-excellent-creative-website-footers.html). Awwwards is a great place to find web design trends and learn techniques. If you enjoy web design as much as me you’ll surely enjoy it!

![](https://thechurchfactory.com/_astro/apple-touch-icon.odZl2Dk8_1XrcJX.webp)

Written by

## Mackenly Jones

Builds the systems that keep churches running on Sunday — streams, websites and the automations in between.

[More posts](https://thechurchfactory.com/blog/)[Website](https://mackenly.com/)

## Keep building

[Websites](https://thechurchfactory.com/topics/websites/) · 6 min read

### [Deploy a Static Website to Digital Ocean (for free)](https://thechurchfactory.com/deploy-a-static-website-to-digital-ocean-for-free/)

Let's create a free self-hosted Bio Link web page in 5 steps using an open-source template and Digital Ocean's App platform.

[Websites](https://thechurchfactory.com/topics/websites/) · 2 min read

### [Why We Use Plausible Analytics](https://thechurchfactory.com/why-we-use-plausible/)

When most people think of web analytics, they first think of Google Analytics, and that's probably because Google Analytics can be found on over 84% of sites.

[Websites](https://thechurchfactory.com/topics/websites/) · 1 min read

### [New Look, New Site](https://thechurchfactory.com/new-look-new-site/)

The Church Factory is going through some changes.
