How to update your copyright year automatically - Squarespace 7.1

You might not believe it, but there is a way to automatically update your copyright text when the new year changes. We’ve put together a list of various options you might want to choose from.

How to get started

  • Edit the Footer section of your website. 

  • Add a ‘Code’ content block

  • Then take a look at the various options for how you would like it displayed, and copy and paste the code into the ‘Code’ block'


Add current year only:

Change ‘Company Name’ to your organisation name.

<p>Copyright © <script>document.write(new Date().getFullYear())</script> Company Name</p>

Add the starting year & current year:

Change ‘2014 - ‘ to the year you started. This will then add the current year automatically to the end.

<p>Copyright © 2014 - <script>document.write(new Date().getFullYear())</script> Company Name</p>

Change the alignment:

Left align:

<p style="text-align: left"> Copyright © 2014-<script>document.write(new Date().getFullYear())</script> Company Name</p>

Right align:

<p style="text-align: right"> Copyright © 2014-<script>document.write(new Date().getFullYear())</script> Company Name</p>

Centre align:

<p style="text-align: center"> Copyright © 2012-<script>document.write(new Date().getFullYear())</script> Company Name</p>

Changing colours of text:

Change #ffffff to desired color. 

<p style="color:#ffffff; text-align: center"> Copyright © 2014-<script>document.write(new Date().getFullYear())</script> Company Name</p>
Previous
Previous

How to customise the promotional popup - Squarespace 7.1

Next
Next

How to craft a compelling homepage: the movie trailer of the website world