Return current year.
- 0.1.0
-
7.1
-
7.0
- Yes
-
Squarespace plan that supports JavaScript.
-
Install Element Text Change. After you install the code be sure to continue on with the rest of the steps.
-
In the element text change code after the selectorTextSearchReplaceMap example data structures add the following example code.
'#block-12345678901234567890 .sqs-html-content' : { searchText : '[year]', replaceText : twcEtcYear },
-
Add code from etc year.html to Website > Pages > Custom Code > Code Injection > FOOTER before the ELEMENT TEXT CHANGE code. Please see Add code to code injection.
Please consider making a donation.
-
2024-06-28
- initial version