Family time, year end reports, budgeting for next year, planning for next year, returning gifts… while this may be the “most wonderful time of the year” it’s often the busiest as well.
Naturally tasks on the lower end of the priority spectrum, such as updating the copyright date on your website, tend to drop off our radar.
Thankfully, with a small snippet of code, you won’t ever have to worry about updating the copyright date again!
If you’re using the Thesis theme, you can drop the following block of code into your custom_functions.php file:
function copyright(){ echo '<p>Copyright '; echo get_bloginfo(); echo ' © '; echo date("Y"); echo '</p>'; } add_action('thesis_hook_footer', 'copyright', '99');
If you’re using a different theme, you’ll need to find your footer.php file and drop this code where you want the copyright info displayed:
<p>Copyright <?php echo get_bloginfo(); ?> © <?php echo date(“Y”); ?></p>
Once the code is in place, the copyright notice will automatically update to the current year and will be one less thing on your year end to-do list.
image source: counting chest bullets
{ 3 comments… read them below or add one }
Lol, your footer date is wrong. The irony was too much to pass up, sorry Ben!
Lol you’re right. I reverted versions of the site (having some server issues) and it looks like that didn’t make the cut. I need to take my own advice!
Thanks for posting this. I found it very useful and it worked perfectly. Kudos!