Automate Website Footer Copyright Year (Squarespace Tutorial)

About this Squarespace video tutorial

If you want to not have to worry about updating your copyright year every January 1st, you’ve come to the right place. With a simple section of code, I’ll show you how to put together an automation that will keep your website copyright information up to date and always available on your site.


Want 20% off your new Squarespace subscription?

Subscribe to the Designing the Row® email list and get the exclusive code sent straight to your inbox. You’ll get email updates when new Squarespace tutorials are published, but you can unsubscribe at any time.


    Today I’m going to show you how to automate the copyright year in the footer of your website by using one simple line of code. This tutorial is based on my Squarespace site, but you don’t have to use a Squarespace site for this; it should work with any sort of website as long as you can put code into it.

    I start with building out the text template for the footer in a regular code block. (In a section on your site, click ‘Add Block’ and search for the ‘Code’ block). Hit the pencil button to edit it.

    You’ll need to copy in the following code:

    <p style=“text-align: left; font-size: 11px;”>
    &copy; <script>document.write(new Date ().getFullYear())</script> All Rights Reserved
    </p>

    You can mess with certain aspects, like the alignment and font size, however you’d like.

    To build it exactly how I’ve built it, you’d need to add in some more information like a location, starting year, and email contact. I’ll show you how my finished code looks like, just change out the details for your site.

    <p style=“text-align: left; font-size: 11px;”>
    Nashville, TN<br>hey@designingtherow.com<br>Copyright &copy; 2016 - <script>document.write(new Date ().getFullYear())</script><br>All Rights Reserved<br><a href=“/privacy-policy”><u>Privacy Policy</a></u>
    </p>

    Once this is all done, copy all of the raw code and open your footer, and add a new code block like you did earlier.

    Copy all that code into the footer and edit it to look good visually. Hit save and you’re good to go! (In the case of your script not behaving correctly, if you wrote it correctly, try saving it in the footer and it may lock into place once the page is saved)

    Now this code block will keep your copyright up to date for as long as you have your site up! For more tutorials on your Squarespace footer, click here!


    *Affiliate disclaimer: Some links may be affiliate links at no extra cost to you.


    The latest Designing the Row tutorials…


    Katherine Forbes

    Katherine Forbes is the founder of Nashville based website and brand design company, Designing the Row. Her client roster has grown to include GRAMMY Nominated & Award Winning Artists, New York Times Best Selling Authors, Film Composers, Reality TV Personalities, & many more! She is known for her clean and simple design style and is recognized as a Squarespace Expert and Squarespace Authorized Trainer. She is also the creator of music community, Music Biz Besties, and teaches digital music marketing as an adjunct professor at ETSU.

    Her work has been featured on Forbes.com and she’s spoken on panels hosted by YELP, the Music Business Association, Women in Music, and many others.

    Katherine believes that "your success depends on you taking action" and she's passionate about motivating and encouraging others to do just that!

    https://www.designingtherow.com
    Next
    Next

    Using Squarespace AI for Website Page Copy and SEO