Want to add dynamic Year in the footer copyright section

Posted in: Newspaper
Post count: 18

Hi I want to make my copyright year dynamic and I’m using tagdiv Composer for footer. Is there any way to make it dynamic. Please let me know as if it is possible.

Post count: 27744

Hello,

This can be done only with custom work.
If you have using the Pro Prebuilt Website you can edit the homepage go to the footer zone and set this code in place you want to display (inline text, column text, text with title, raw Html)

<span id="year"></span>

After that you need to use a javascript code to display the current year. This code need to be set in Theme Panel -> Custom Code -> Custom JavaScript

document.getElementById("year").innerHTML=(new Date).getFullYear();

https://i.imgur.com/XVpGchb.png -> https://i.imgur.com/lY8gXyb.png -> https://i.imgur.com/BWL9c0k.png

Hope this helps you!

Thank you!

Post count: 78

This is not working for me

Post count: 27744

Hello,

I made a new test and for me works well on a Pro Prebuilt Website => https://www.screencast.com/t/4ht580aGA
Please follow the above steps, and try again.

Thank you!

Post count: 144

Just use ##year## in the footer. It will automatically update to the current year.

Post count: 18

This works beautifully and simply. Thank you so much for uncomplicating things. It is much appreciated nearview!

Post count: 14

Works great, thanks

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.