how do i get the year to update automatically for copyright in subfooter. Mine still says 2017.
www.gracecenterhouston.com
Dynamic copyright in subfooter
Ann_Stephens
#1
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.
Ann_Stephens
#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
Danish_Iqbal
#4
You have to type the rest.
Here you go:
Copyright All Rights Reserved © <span id="copyright_year"></span>
<script>
var d = new Date();
document.getElementById("copyright_year").innerHTML = d.getFullYear();
</script>