Dynamic copyright in subfooter


#1

how do i get the year to update automatically for copyright in subfooter. Mine still says 2017.
www.gracecenterhouston.com


#2

Hello,

Place the code in Theme Options > Footer > SubFooter where the year should be:

<span id="copyright_year"></span>
<script>
var d = new Date();
document.getElementById("copyright_year").innerHTML = d.getFullYear();
</script>  

Best regards,
Artbees Support.


#3

Ok thank you. This code caused only the year to show up. The code you sent just shows “2018” at the bottom in the subfooter. https://gracecenterhouston.com/

Previously it had a line similar to: “Copyright All Rights Reserved © 2017”
And that section in Theme Options is labeled: “Sub Footer COPYRIGHT Text” but it only displays the year. I copy/pasted this that you sent:

Any other suggestions?
Thank you…
Ann


#4

You have to type the rest.

Here you go:

Copyright All Rights Reserved &copy; <span id="copyright_year"></span>
<script>
var d = new Date();
document.getElementById("copyright_year").innerHTML = d.getFullYear();
</script>

#5

Thank you… I guess i should have known that… duh!
:slight_smile: It all works now…


#6

You’re welcome.

Best regards,
Artbees Support.