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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Text Mate Short Cuts

General HTML/CSS hotkeys Ctrl-Shift-W Wrap block of text in HTML tags. Defaults to <p>,...

Styling Telephone Numbers

One of my common sense design tricks is to stlye phone numbers so that when a user click on the...