Pages

Thursday, May 12, 2016

Dynamic PHP Copyright Notice in WordPress


Now that your site complies with the Act – you’ll want to ensure your website never looks obviously out of date.
While you are editing your footer – ensure your copyright notice is dynamic and will change year to year – automatically.
It’s simple to display a dynamic date in your footer in WordPress, for instance, so you never need to change your copyright notice on your blog when the year changes.
This little bit of code will display the current year. Just add it in your theme’s footer.php and you can forget about making sure you don’t look stupid or give the impression your site is out of date and unused, at the beginning of every year.
&copy; Copyright 2004 - <?php echo date("Y") ?>
A simple and elegant PHP copyright notice for WordPress blogs.
Article published on http://www.hobo-web.co.uk/

No comments:

Post a Comment