Okay
  Public Ticket #3231645
Javascript getFullYear() function in footer
Closed

Comments

  •  1
    blup96 started the conversation

    Hello,

    I would've liked to add a javascript function to my website footer with the getFullYear() function. Unfortunately it doesn't work with Kalium Theme. Seems like javascript is not supported in the footer.

    With following function the date would change automatically every year and would be much easier for me than change it manually:


    © Copyright <script>document.write(new Date().getFullYear());</script>


    Is it possible to make that work in Kalium Theme?


    Regards

    Stefan Messmer

  • [deleted] replied

    Hi Stefan,

    To show the copyright and the year you can write this shortcode:

    © Copyright [date format="Y"]

    And it will show like this:

    © Copyright 2023

    Thanks!