Html in bottom bar (add date automatically)
-
For footer credits in my bottom bar, I would like the year to update automatically. So, “Copyright my name 20XX”.
Elsewhere on the site, I have successfully used this html:
<b><p style="color:white;font-size:bold;"">Copyright ? <script>document.write(new Date().getFullYear())</script> My Name</p></b>
However, if I put this code into the footer credits section of the bottom bar customiser (Theme customiser>footer>bottom bar>edit footer credits), the code does not work.
Is there a simple way to make it work without using a plugin – or not?
I’m using Divi theme, but I believe this is a WordPress feature.
Many thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Html in bottom bar (add date automatically)’ is closed to new replies.