Important:
This support area is for Kalium 3 users only. Support for Kalium 4 has moved to our new platform at support.laborator.co. If you’re using Kalium 4, please create a new account there using your email and license key. A password will be sent to you automatically.

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!