October 28, 2012
F X M Ivan B K
In the following simple solution, I show you how to use a little php
code snippet to automatically update your WordPress Copyright Date
every year (appending the new date automatically). The process is super
simple, but I figured that there may be others out there looking to
accomplish the same goal and thought it would be nice to post an
example.
Automatically Update your Copyright Date
- Login to your WordPress Admin Panel
- Navigate to Appearance > Editor
- From the Theme Files section, select your Footer Template (footer.php)
- Add the following code somewhere within your footer.php file (editing 200x to reflect the date your began to write content on your site):
©200x-<?php echo date("Y"); ?> <?php bloginfo('name'); ?>
- Click the Update File button and go view your site
If all goes well, the code will append the current year and the blog
name to the existing copyright information. For example on this site the
copyright information might appear as:
©2005-2009 blog.mimizu.or.id
0 comments :
Post a Comment