Automatically change your footer copyright

by enbeeone3 on 15/01/10 at 9:33 pm

Automatically change your footer copyright

Another year passes by with all the usual fun and frivolity, however, Did you remember to change your Copyright on your website footer?

Chances are, this wasn’t too high on your list, and you might overlook it until somebody mentions it to you in May.
There is no reason to have to do this yearly maintenance if you don’t mind doing a little cut and pasting.

First, find where your copyright is inserted. In Joomla, it is generally at the bottom of the templates index.php file. Depending on the template, it may be in a different location. Your mileage may vary.

2010-01-05_1435

Now, we will simply change the 2009 date, to this bit of php code:
(Remove the space after the < and before the >)

< ?php echo date('Y');? >

So it looks like this now.

2010-01-05_1438

Pretty sweet right?

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply


You must be logged in to post a comment.