It’s that time of year again. No, I don’t mean time to make resolutions for the new year or to plan out your business strategy for the next twelve months. It’s time to update the copyright date on your websites. Well, if you use WordPress you can fix this issue now so you will never again have to mess with changing your copyright date.
Many WordPress themes include a copyright date in the footer. The problem is that they only list the current year. However, a proper copyright date should cover a range of years beginning with the first year your website went live. For example, if your blog started in 2005, your copyright should cover 2005 through the current year. To fix your copyright date so that it contains the proper date range and automatically updates at the beginning of each year, just place the following code in your footer.php file:
© Copyright 2005–<?php echo date('Y'); ?> <?php bloginfo('name'); ?>. All rights reserved.
Replace 2005 with whatever year your website started. You may also replace <?php bloginfo('name');?>
with your domain name or the legal name of your company if you wish, so you may end up with something like this:
© Copyright 2005–<?php echo date('Y'); ?> My Company Name, Inc. All rights reserved.
If you want to see how it looks, just scroll to the bottom of this page and look at the copyright in the footer. With this code in your footer, you’ll never have to worry about updating your website copyright date again. Happy New Year!
There are varied remedies for sundry diseases. Several remedies are antifungal medicines. In certain instances pharmacies offer to theirs customers Viagra. If you’re concerned about erectile problem, you have to study about “cialis daily” and “daily cialis“. Probably you already know something about the matter. Maybe “cialis for daily use cost” is an extremely complicated matter. Matters, like “undefined”, are linked many types of medicinal problems. A scientific research found that about 14 percent of patients capture Bupropion had sexual disfunction. Finally ordering remedies from the Web can save money, but keep these tips in mind.
January 6, 2010
Nice easy one for even novices to edit into their theme, makes for a great tip!
January 6, 2010
Thanks Paul.
January 8, 2010
Thanks for the heads-up! I was trying to find this article.
January 9, 2010
shawn, do you already include this in the setup, or should I go back in and alter each one of mine? thanks, jenny
January 9, 2010
Jenny, you’ll have to add it to each site’s footer. It’s not included in any of the setups because there are so many themes to choose from and I wouldn’t know what year the client started their blog. If you have any trouble inserting the code, just let me know.
January 18, 2010
And if you’d like a cleaner footer with just the last two digits of the year, ie 2005-10 see:
http://www.johncrumpton.com/copyright-notice-with-current-year/
January 18, 2010
Thanks John. You can also change the ‘Y’ to ‘y’ in the code above and achieve the same result for WordPress sites.
October 6, 2011
still works. thanks. just remind people to backup their footer.php or the custom code when they update their theme cuz they’ll likely lose it if they don’t.
January 8, 2012
I’ve written a short snippet which is an improvement over this, as it supports date ranges, so all you enter is the start date, and then it will display it as just that year, or that year to the current one if applicable
Check it out at http://www.gostomski.co.uk/snippet/better-auto-updating-copyright-date
January 8, 2012
Thanks for the link Damian. The code in this article already includes the ability to do date ranges. I took a look at your snippet and it does automatically compensate for the issue of what to do when in the first year you want it to say “2012” but for following years you want it to automatically switch to “2012-2013” so that will be a nice improvement for people just starting their websites. However, it is also many more lines of code than what was discussed above so unless you are just starting your website, it is more code than you need. I always like to keep things simple if possible. It’s just less opportunity to screw something up. 🙂
March 29, 2012
Interesting, we don’t use WordPress but are going through a revamp at the moment so will look into it as it seems like the best platform. Useful info in case we do, thanks
March 8, 2015
Dear Minja Blog Setup:
Thank you SO much for the copyright solution! I knew fixing that problem had to be fairly easy, but I spent A LOT of time searching unsuccessfully for something that would work. None of them did until I ran across your copyright solution!
Thanks again for your valuable help!
With kind regards,
Dr. Miles Whitley
Dr.Miles@Live.com