How to Automatically Update the Copyright Year on Your Website

In this post, I’ll show you how to add some code to your Squarespace website footer so that you never have to update the copyright year again. Adding this line of html code is super easy, so don’t be afraid to try it — even if you’ve never added code to your Squarespace site before.

 
 

Here is the HTML code you’ll need (don’t forget to replace “First Last” with your name, brand name or company name!).

LEFT-ALIGNED:

<p>Copyright &copy; <script>document.write(new Date().getFullYear())</script> First Last. All Rights Reserved.</p>


CENTERED:

<p style="text-align: center"> Copyright &copy; <script>document.write(new Date().getFullYear())</script>  First Last. All Rights Reserved</p>

If you are using a Squarespace Business or Commerce plan, insert the html code in a “code” content block. If you’re using a Squarespace personal plan, add the line of code to a Markdown content block.

Let me know if you have questions! Leave a comment below.

 
Previous
Previous

Squarespace Versus Wordpress: Which is Best for Your Business in 2024?

Next
Next

Anatomy of a Successful Artist Portfolio Website: Paweł Jońca, Illustration Artist