Update Your Copyright Annually

Updating your Copyright on your Squarespace website has annually has never been easier. Not only that, it helps to keep your website updated and relevant.

Now, you can do it automatically in Squarespace with a simple code injection and link.

Here is how:

Step 1:

In a text block, add your footer attribution text. You can copy my template below and add it to your site.

Copyright © date. Your Business Name. All Rights Reserved

Step 2:

Add a link to the word "date" with a destination of #[date] 

(It is important to get this exact or it will not work!)

Step 3:

Add the below code to the site-wide footer code injection:

Settings > Advanced > Code Injection > Footer

<!-- Auto Update Footer Year -->
<style>footer a[href="#[date]"]{background:none!important;text-decoration:none;pointer-events:none!important;color:currentColor!important;}</style>
<script>(function(){var footerYear=document.querySelector('footer a[href="#[date]"]');footerYear.innerHTML = "";footerYear.appendChild(document.createTextNode(new Date().getFullYear()));})();</script>
<!-- end Auto Update Footer Year -->

For more detailed instructions, visit the original source.

If you need help implementing this on your site, you can hire us for support:

Previous
Previous

Social Media Trends for 2024

Next
Next

In Times of Financial Uncertainty, Generosity Matters More