View Cart

Make copyright link in the footer.

Have you ever visited those site that seem old because when you get to the footer it has a year that was two or three years ago. Here is a sure fire way to fix that on your wordpress site so that it will not happen to you.

Place this code in your theme’s functions.php file to address that pesky problem of copyright dates in the footer not having the current year displayed!!

/* shortcode for the current year */
function year_shortcode() {
	$year = date('Y');
	return $year;
add_shortcode('year', 'year_shortcode');

So your copyright date in your theme’s footer might look something like this…

Copyright © [year] My company brand

Copyright © 2019 My company brand

Related Articles