Dynamic Copyright Year


#1

Hi!

I would like the Copyright year (© 2019) to update automatically, so I dont have to manually update every footer every year. Seems Unbounce does not have this natively.


#2

Try this!

Paste this into an HTML block on your landing page.

<script type="text/javascript">
  document.write(new Date().getFullYear());
</script>

#3
&copy; <?php
  $fromYear = 2018; 
  $thisYear = (int)date('Y'); 
  echo $fromYear . (($fromYear != $thisYear) ? '-' . $thisYear : '');?> Company.

Have a nice day
David


#4

This is sweet! Saved :wink: