SOLVED

Re: Automatically update year in your footers

Go to solution
Tricia_McLella1
Level 2

Automatically update year in your footers

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!

Tricia McLellan
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Automatically update year in your footers

Hi @Tricia_McLella1,

 

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.

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Automatically update year in your footers

Hi @Tricia_McLella1,

 

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.