Display copyright ‘current year’ in the footer using WordPress full site editing blocks

  1. Edit the footer template part
  2. Insert a “Custom HTML” block
  3. Enter the following
Copyright &copy; <script>document.write(new Date().getFullYear());</script> Your Site NameCode language: HTML, XML (xml)

The above code uses JavaScript to keep the current year up-to-date.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.