Automatically Update Copyright Year in WIX

:triangular_flag:MORE TUTORIALS https://www.wixideas.com/tutorials

:television:Please Subscribe, Like, & Share :backhand_index_pointing_right:t4::backhand_index_pointing_right:t4: YouTube

This tutorial will show you how to automatically or dynamically update your copyright year using velo by WIX.

Code

$w.onReady(() => {

 let currentYear = new Date().getFullYear();

//BUTTON ELEMENT
$w("#copyrightButton").label = `(c) 2021 - ${currentYear}. BUSINESS NAME.`;

//TEXT ELEMENT
$w("#copyrightText").text = `(c) 2021 - ${currentYear}. BUSINESS NAME.`;

});

:television:Please Subscribe, Like, & Share :backhand_index_pointing_right:t4::backhand_index_pointing_right:t4: YouTube

#copyrightyear #autoupdatecopyrightyear #dynamiccopyrightyear

Facebook Page: https://www.facebook.com/wixideas
Facebook Community Group: https://www.facebook.com/groups/wixideas
Instagram: https://www.instagram.com/wixideas/
Website: https://www.wixideas.com/
YouTube Channel: https://www.youtube.com/@wixideas

3 Likes