Skip to main content

Year in footer

I figured out the issue with the footer issue with the year. You need to put the code in the p tags then it works fine.

its weird that its not in p tags when you download layouts from yootheme. but it is solved anyhow

 

<p>© <script> document.currentScript.insertAdjacentHTML(‘afterend’, ‘<time datetime=”‘ + new Date().toJSON() + ‘”>’ + new Intl.DateTimeFormat(document.documentElement.lang, {year: ‘numeric’}).format() + ‘</time>’); </script> Design Bites. All rights reserved.</p>

 

Footer date issue