There’s always seems to be something to tweak or maintain on your WordPress blog. But manually updating the copyright notice every January doesn’t have to be one of them.
For a lot of website owners manually updating the year in your WordPress footer.php template isn’t necessarily a difficult or time-consuming task — but you have to remember to actually do it. And if you manage more than one WordPress site, the process becomes quite tiresome.
So here’s a quick and painless way to have WordPress automatically update the copyright year for you. And it doesn’t require a plugin; which is a nice bonus.
Just add this code (generally to your footer.php file).
Copyright <php echo date('Y'); ?> by <a href="<php echo get_option('home'); ?>/"><php bloginfo('name'); ?></a> All rights reserved.
The first code snippet “echo date(‘Y’)” will automatically display the current year.
The second part will display your blog name (linked to your home page). If you don’t need the name linked, simply remove the href links.
That’s it!
Published in Web Design
Related Topics: Coding, Copyright, Intellectual Property
Written by Michael Kristof
President and creative strategist of Kristof Creative, Michael loves brainstorming new business ideas and pushing the boundaries of what the Web can be.
Before posting a comment, please review our comment policy.