Okay
  Public Ticket #3567758
Footer - Dynamic copyright date (automatic)
Closed

Comments

  •  10
    Matteo started the conversation

    Hi there,

    do you also youse some kind of dynamic tags (like Elementor) to automatically update the copyright's year in the footer?

    I tried some commands that I used in the past but didn't work. Currently I wrote it manually (2024) but maybe you got some advices.

    Thank you in advance

    Attached files:  Footer_DynamicCurrentYear.png

  •  1,973
    Support replied

    Hi Matteo,

    this is a suggestion:

    if you think that the copyright text will not change you can open /sections/footer_section.php

    and then replace line 20 in the file with

    <div class="footer-middle"><div class="copyright">Your copyright text and this is the dynamic year <?php date("Y"); ?></div></div>


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  10
    Matteo replied

    Hi there,

    I managed to fix it and it works - but kinda different way from your solution.

    I tried to modify just the file footer_section.php as you mentioned and didn't worked. After that I tried just with the normal "Copyright text" (GUI) and didn't worked.

    Now I copied and pasted the same code in the footer_section.php file and also in the "Copyright text" (GUI) and now it works just fine - see attachment). Maybe it will help you with other customers.

    Thank you very much for your help - this ticket can be closed.

    PS. I also had to add echo in the php in order to print it

    Attached files:  CopyrightYear_GUI.png
      CopyrightYear_PHP_File.png

  •  1,973
    Support replied

    Nice, good to know, thanks for sharing!

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy