Get the free theme
View Categories

How to Show the Current Year in a WordPress Footer

< 1 min read

Table of Contents

A copyright line that hardcodes the year is a small thing that quietly goes wrong every January. In Loupely Canvas you put a token in your footer instead, and the year is always current with nothing to remember.

Use the year token

In your footer markup under Appearance, Loupely Canvas, drop in the {year} token wherever the year should go:

<p class="foot">© {year} Trestle Coffee Co.</p>

Canvas fills {year} with the current year when the page renders, in your site’s time zone. Pair it with {site_title} if you would rather not hardcode the name either:

<p class="foot">© {year} {site_title}. All rights reserved.</p>

Both tokens work in the Header and Footer boxes and in a per page override. Style the .foot class from your Head code box. For the rest of the header and footer tokens, including menus and a logo, see using tokens in the header and footer.