20 Feb Automatically update your footer copyright on a WordPress website
It’s now , have you updated your footer copyright date?
Have you ever been to a website and looked at the copyright date and thought… I wonder if they are still in business? This business looks old… hum… let’s move along.
Of course most of the time we either forget to update it, or we don’t even think about updating the website footer! This happens a lot, especially when we are busy working on our business, meeting new clients, getting work done.
Good news… we can let the computers do it for you!
Future proof your footer with some simple code!
Grab one of these snippets and paste on your page/widgets (or forward this site as a friendly reminder to someone who can do it for you).
You can paste this JavaScrip straight into your widgets or when editing a page, page them in ‘TEXT; view.
This will display a date like this:
Or alternatively if you would like to display a date range you can use the following code:
© 2010<script>new Date().getFullYear()>2010&&document.write(“-“+new Date().getFullYear());</script>, Company.
This will display the following text: © 2010, Company.
This is how it appears in Appearance > Widgets on this WordPress site: