Home / Archive / Shortcode for Dynamic copyright year using HTML
Duplicate Snippet

Embed Snippet on Your Site

Shortcode for Dynamic copyright year using HTML

Adjust the styling either inline or using css.
Either automatically add this to your site-wide footer, or use a shortcode to insert it manually.
Optional: add your site title before the copyright text

Code Preview
universal
<div id="copyright" class="box" style="align-items: baseline; font-size: 100%; font-size-adjust: ex-height 0.6; padding: 1em;"><!-- Dynamic Copyright Year -->
<p style="color: currentcolor; background: transparent; font-size: 0.85em; font-family: 'Times New Roman', serif; letter-spacing: 0.01em; word-spacing: 0.1em;">Copyright © 
	<script>
		document.write(new Date().getFullYear());
	</script></p>
</div>
<!-- end of copyright script -->

Comments

Add a Comment