Skip to content

Instantly share code, notes, and snippets.

@benstjohn
Created October 24, 2018 16:46
Show Gist options
  • Save benstjohn/bd6bbdb003c95f35af059b6e049701ee to your computer and use it in GitHub Desktop.
Save benstjohn/bd6bbdb003c95f35af059b6e049701ee to your computer and use it in GitHub Desktop.
Wix Code Snippet for updating the year dynamically in the footer
//Make sure this goes on the SITE section of WIX CODE
$w.onReady(function(){
let date = new Date();
let year = date.getFullYear();
let footerString = "© "+ year + " Created by Kohler Expos, Inc." //you should be changing the last part
$w("#text161").text = footerString; //make sure to change text161 to match the appropriate reference
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment