Free Ebook - Value Added ReTweets

VARTTo receive a copy of my ebook - Value Added Retweets, fill in your details below!



Powered by WP Email Capture

 

New Year on your blog means there’s a number of jobs you must do, little things, such as set goals for the year, write new content & update your templates. A lot of these jobs can be automated, one such one is your copyright notice at the bottom of your blog.

I am not a lawyer, but the second you create content & unless you state otherwise, it is under copyright, so it’s a good idea to have something that states that the copyright is yours. Keeping the date upto date is one of those jobs that is easily forgotten, so to automate it you need to put the following line in your footer.php file in your template:-


&copy; <?php bloginfo('name'); echo date('Y'); ?>

Nice and simple. A quick explanation for each of the elements in the code:-

  • &copy; - The HTML code for the copyright symbol: ©
  • bloginfo(‘name’) - The wordpress template tag for displaying the name of the blog.
  • date(‘Y’) - The current year

That’s it! You don’t have to update your footer copyright ever again.

If you want to include your year of formation in the copyright notice, put this in your footer (assuming your blog was formed in 2004).


&copy; <?php bloginfo('name'); echo "2004-". date('Y'); ?>

Again, very simple.

This can be put in any of the template files in your blog, but traditionally it’s put in the footer. Any questions & I’ll do my best to answer them.

Tags: , , | Comments: 6 Comments

 
 

6 Comments

  1. Nik says:

    Cheers for the reminder Rhys. Whilst my throwaway blog isn’t on WP (mainly cos it isn’t important enough to warrant the work!), your post was a timely nudge to sort this out

  2. Walter says:

    This reminds me that I’ve not yet change the Copyright date on my blog. Thanks for sharing this code. :-)

  3. Dude, you like… telepathically read my mind. From Canada to North Wales. I was wondering if this is possible and now here we are, with a smile on my face.

    Awesome sauce.

    I’ll buy you a pint of something nice one day. I’ll see your ass in another heated discussion at the ProBlogger forum ;)

  4. Dynasty Web says:

    Thanks for the code to use on my WordPress Blog. I was actually typing in the current year in my code.

    This makes it easier to use this code because I will never have to worry about updating the copyright year again and for my client blogs I design as well.

  5. I needed this tonight and Googled “Rhys Copyright Notice”, thats how much mindshare you’ve gained in the “I need the code to put a copyright notice in my WordPress blog footer” space.

  6. Livvy U says:

    Hi Rhys
    I found you because I’m trying to find out how to put a copyright notice into the footer of my Blogger blog. My question is – will your instructions work on Blogger, or do I have to do something else?
    I would greatly appreciate it if you have time to reply.

    Many thanks!
    Livvy U





Subscribe to the comments on this post | Trackback URL

Leave a Comment/Question

Comment Rules: Very simple people: be nice, be friendly, be awesome. Any comment which will consist of "My Keywords I'm Targetting", or contain your URL in the comment text will be marked as spam. Pseudonyms, names and "Name/Pseudonym | My Site Name" are fine. Also, don't just thank me. Seriously. I get enough adulation from people. Thanks!

Want a picture displayed?

Get a gravatar!

 
About Rhys

Rhys Wynne, the author of this blog, is a 20 something web designer from Colwyn Bay. Go to my favourite posts

Find out More

On Social Networks

Facebook Twitter Youtube Facebook Fan Page Linked In StumbleUpon Digg Delicious Myspace last.fm dopplr Problogger Blog Engage Problogger

Facebook
Twitter
Youtube
Facebook Fan Page
Digg
Delicious
Myspace
last.fm
Dopplr
StumbleUpon
Problogger.com Forums
Playfire
Blog Engage
Linked In

 

Lifestream

Today

twitter (feed #8)
Mum probably bought me these when I was little! RT @ashens: Cheapo Action Figures: Wrestlers etc - http://is.gd/eRBVi [rhyswynne]
September 2nd via Twitter
twitter (feed #8)
has twice - in one day - been scared by butterflies :( [rhyswynne]
September 2nd via Twitter
twitter (feed #8)
RT @Hobo_Web: Looking forward to drink visibility! [rhyswynne]
September 2nd via Twitter
twitter (feed #8)
being a total ambassador for awesomeness today! [rhyswynne]
September 2nd via Twitter
twitter (feed #8)
RT @JestaThaRogue: Happy 9.02.10 day America! :) [rhyswynne]
September 2nd via Twitter
twitter (feed #8)
So drinks tomorrow & Saturday for @thinkvisibility. Been invited for drinks tonight. Am I going? This link answers - http://bit.ly/cxy0mS [rhyswynne]
September 2nd via Twitter
twitter (feed #8)
#shakespearefootballerquotes Is this an Agger I see before me? [rhyswynne]
September 2nd via Twitter
twitter (feed #8)
Quote of the day from @search_magician: Interpret the word "Guru" as "Twat". [rhyswynne]
September 2nd via Twitter
twitter (feed #8)
Genuinely giggling at a forwarded email from @wynnne this morning. Wondering the best way to share it with you.... [rhyswynne]
September 2nd via Twitter
twitter (feed #8)
Is there anyway of subscribing to just the Smashing Magazine wallpapers for the month posts? Do love them so! [rhyswynne]
September 2nd via Twitter

Older Entries

 
Sponsors