How to add an automatically updating year to your Squarespace website footer

The year is coming to a close, and with the holidays coming up, the last thing we want to be thinking about is tedious updates to our websites. It’s always been my philosophy as a web developer to automate any task that you have to do over and over again. Updating the year in your website footer is something that takes time that you don’t have, and is frustrating if you have to keep doing it every year. So this time, instead of changing 2018 to 2019, update your footer to the snippet below, and you’ll never have to update it again! It will automatically change to 2019 on January 1st. And next year, it will change to 2020. That was easy, or should I say “Simple”.

Watch the video:

The simple steps to updating your footer for the last time:

1. Log in to Squarespace, and open your site. Hover over the footer, and click “Edit” on the popup menu.

2. Add a new block, and select “Code”

3. Enter the following code as the content of that block

<p>&copy; <script>document.write(new Date().getFullYear());</script>, Your Company Name.</p>

4. Save your changes, and enjoy your new automated footer!


If you need more information, or have any other questions about the web, I’m here to help!

Previous
Previous

The Simple Steps to installing Google Analytics with Google Tag Manager

Next
Next

The simple steps to manage your profile on Google My Business