Never Update Your Footer Copyright Year Again

Jan 3, 2018 | Web

It’s a tell tale sign that a website is not being updated regularly, the footer copyright is outdated. Often though, this detail just gets overlooked, it’s easy to forget about something that only needs to be updated annually.

The Solution?

Use javascript to print the current year instead of typing it in html text.

If your website template will support javascript in the footer, you can use this snippet to print the current date.

<script type=”text/javascript”>document.write(new Date().getFullYear());</script>

Here is an example of the script in footer text

<p style=”text-align:center;”>&copy; Copyright <script type=”text/javascript”>document.write(new Date().getFullYear());</script> <a href=”/”>Website Name</a> All Rights Reserved</p>

The professionalism is in the details! It’s a small thing but it can really add to the relevance and reputation of your website.