How to get the current year in the body injection?
Hello
I would like to display the following footer copyright text:
© 2025 My Business
I don't wanna use the one in the pop-up from the footer navigation.
So I tried: <?php echo date("Y"); ?>
Like this:
© <?php echo date("Y"); ?> My Business
But it didn't work.
Any idea?
Thanks
-
-
·
LeonidS
- ·
-
·
LeonidS
-
- · OneEagle
-
·
In reply to LeonidS
- ·
Hi dear @LeonidS
Thank you for your help. I have tried the code but it didn't work. You forgot to add:
document.write
So I have added it like this and it worked:
<script>document.write(new Date().getFullYear());</script>
Thanks
-
-
·
LeonidS
-
·
In reply to OneEagle
- ·
I guess, you already had the palce to insert this value :-) Anyway, it nice that it has been resolved.
-
·
LeonidS