Created
January 11, 2021 12:56
-
-
Save tamalchowdhury/6688b6cde23dbe9d847b64cee5b60426 to your computer and use it in GitHub Desktop.
Show Current Year in WordPress widgets without PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span id="my_date">1999</span> | |
<script> | |
var d = new Date(); | |
document.getElementById("my_date").innerText = d.getFullYear(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment