INSTRUCTIONS FOR ADDING DYNAMIC TEXT SHOWING THE CURRENT YEAR FOR COPYRIGHT
-
Add the copyright element to the footer
-
Switch to Dev Mode if not already
-
Open the Corvid panel at the bottom of the screen if not open
-
Select the "Site" tab in the Corvid panel
-
Copy and paste the following green code into the $w.onReady code block in the Corvid panel to look like the following
$w.onReady(function () {
//TODO: write your page related code here...
// Gets today's date
const today = new Date();
// Change the text to reflect the current year
$w('#currentyear').text = today.getFullYear().toString();
});
Add this grouped element to the footer
Copyright © 2015 –
1975
| Business Name | Terms of Service