Laughing Cat Studios - Web Design and eCommerce

Automatically Update Copyright Dates

It’s the beginning of a new year and time to remind all web developers to check their copyright dates on their websites. My intention is to add simple code to my footers so I don’t ever have to manually update a copyright date. However, I must admit, I have not always been diligent about doing so. So this one is for those of you who have manually input copyright dates on the websites you have developed and are now having to manually update those dates.

To have a copyright in your footer that looks like this:

Copyright © 2007 – 2011. All Rights Reserved

If you are working with html files that are not set up to parse PHP, replace “2007″ in the following code with your copyright start date and then insert the following javascript code into your html file:

If you are working with php files, insert the following php code into your php file:

It’s as simple as that. Do it now on all your current websites and get into the practice of using code on all future sites you develop. Then on New Years Day, you won’t ever have to worry about it again!


There are no comments yet...

Kick things off by filling out the form below.

Leave a Comment