With the New Year now being here many people will need to update their footer on their sites. Well, that is unless you’ve taken one of my classes 😉
For those of you that have not…
Here is a simple code that you can add to your site so you’ll never have to change the copyright date ever again. There is two ways to handle this first if your webpage does NOT end in .php use this first example.
open up notepad or your favorite text editor then copy the following code into that blank text document.
// Code to display 4 digit year
var mydate=new Date()
Save that file as year.js and upload via ftp to the root of your website. For most people that will be in your public_html folder in your web hosting account.
Upload your newly edited page and your code should appear showing the current year and you should never have to update the year again.
NOW, for those of you using .php pages it is MUCH easier.
Simply open up the page you would like to add the year code to and simply add
2020 in the spot you would like the year to be displayed and then re upload that page to your website.
I’m looking on updating my web basics class, I would love to hear any comments to see if there is interest in that. For those looking for more than just the basics or a refresher and beyond check out Webpage Secrets Revealed
As always I’d love to hear if this was useful for you so I know whether or not to do more of these type of posts.