07 Jun
Posted by Joel Falconer as New Media Technique
Having managed a variety of sites over the years, I’ve compiled a long list of pet peeves in the area of site maintenance. One of those is that every New Year’s Eve, you’ve got to rush in and change the copyright year in your footer on all of your sites. Depending on how many you have, this can be a real pain - but even with one site, it’s annoying enough.
I’ve been working on a new web project, and while coding I decided that I’d had enough and I wanted to avoid the annual rush and have the date update itself.
I base all my projects on WordPress, whether it’s a blog or something else entirely, so something that used minimal code by calling functions in the WP engine would be ideal. A bit of poking around and I found it - it’s not groundbreaking, but it sure is helpful if you’re like me and want to get the best results from minimal coding knowledge. Here’s the line of code I used to achieve the desired result:
Copyright © 2007-<?php the_time('Y') ?> Joel Falconer. Some Rights Reserved.
Just change the start year to match, and the name of the entity or individual owning the rights. Unless you’re using Creative Commons, you’ll want to change that last sentence to say “All worldwide rights reserved.”
Did you enjoy this article? Get free updates by RSS or email so you don't miss the next one!
Consider sharing this article with your friends, or submitting it to your favorite social network.
7 Responses
Vered
June 7th, 2008 at 2:45 pm
1This is useful. Thanks. Explains your tweet from earlier “I hate coding”…
Joel Falconer
June 7th, 2008 at 2:50 pm
2I really do ;)
Marelisa
June 7th, 2008 at 4:47 pm
3Joel: I put the copyright notice in the footer section of my blog, but I did something wrong and now it’s not at the bottom of the page (like yours is) but kind of floating to the right. If you look right underneath the blogrush widget on my blog it says: “Copyright © 2008 “Marelisa Online”; All Rights Reserved. Theme by Bob.” I guess I erased the code that told it to sink to the bottom of the page. Any ideas on how I can get it to sink?
Joel Falconer
June 8th, 2008 at 12:05 pm
4Mare, a look at the original theme at Blog Oh Blog against the source on your home page would indicate that some of the code in your footer.php was accidentally deleted. I’m emailing you replacement code that should work.
Marelisa
June 8th, 2008 at 1:15 pm
5Thank you so much Joel, I pasted the code you sent me and my footer is back where it should be. I really appreaciate it :-) !
Joel Falconer
June 8th, 2008 at 1:49 pm
6Marelisa, just glad that I could help (and that the code worked!).
Shilpan | successsoul.com
June 8th, 2008 at 1:59 pm
7Joel -
Great tip mate. Here I go to check my code and modify. Thanks again. :) Shilpan
RSS feed for comments on this post · TrackBack URI
Leave a reply
Categories
Archives
Links
Tumblelog
Meta
Joel Falconer is a freelance writer and a recording and performing musician. He is a Contributing Editor at Top 50 blog Stepcase Lifehack.
Calendar
Copyright © Joel Falconer. Some Rights Reserved. Joel Falconer is powered by WordPress. Layout adapted from Design Disease's Blogging Pro theme. Read our Privacy Policy.
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.