Automatically update year in your footers | Community
Skip to main content
Level 2
November 29, 2021
Solved

Automatically update year in your footers

  • November 29, 2021
  • 1 reply
  • 2282 views

Thinking ahead to next year and updating the copyright and year automatically in all my templates so that I will not have to do it next year and beyond - I found this works great:

 

<div>
<span style="font-size: 11px;">&copy; <script>document.write(new Date().getFullYear())</script><span style="color: #000000;">&nbsp;<a href="http://www.editme.com" target="_blank" id="" style="color: #000000;">Your Company Name</a></span> | Street | City, State  Postal Code | (000) 000-0000</span>
</div>

 

This may not work in your email footer but it does in landing pages.

Hope this helps!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Hi @triciam11,

 

You should use the code in the blog post: 

The definitive guide to setting up copyright year {{my.tokens}} for Emails and LPs

 

It follows better coding practices and has both LP and Email variations.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
November 29, 2021

Hi @triciam11,

 

You should use the code in the blog post: 

The definitive guide to setting up copyright year {{my.tokens}} for Emails and LPs

 

It follows better coding practices and has both LP and Email variations.