Automating the Copyright Year on Your Wix Website Using Velo
When content is continuously updated, it's essential to ensure that your website reflects the most current data. One small detail that needs yearly updating is the copyright notice in your website's footer. We will show you how to automate this element using Velo by Wix, ensuring your site remains legally compliant and professionally up-to-date without any manual intervention each year.
Why Automate Your Copyright Year?
Automating this process eliminates the risk of forgetting to update the year, which can sometimes be perceived as a lack of attention to detail or outdated content by your visitors.
Step-by-Step Guide to Automating the Copyright Year
Prerequisites
Before we start, ensure you have access to your site's dashboard on Wix and can edit your site's code through the Velo platform.
Step 1: Access the Velo Developer Tools
Sign in to your Wix account and open your site's editor.
Click on "Dev Mode" at the top of the editor.
Enable "Dev Mode" to access the Velo tools.
Step 2: Edit the masterPage.js File
In the Site Structure sidebar, navigate to the masterPage.js file. This file contains the JavaScript that affects all pages of your site.
Insert the following code snippet at the beginning of the $w.onReady function:
$w.onReady(function () {
$w("#copyright").text = "© " + new Date().getFullYear() + " by WIXCreate.com";
});
Replace "WIXCreate.com" with your site's name or the entity that holds the copyright.
Step 3: Save and Publish
After entering the code, click "Save" and then "Publish" to make the changes live.
That’s it! You have successfully automated the copyright year on your Wix website. Now, no matter the year, your site's footer will always display the correct, current year, adding a layer of professionalism and attention to detail that visitors and clients appreciate.
Further Customization
If you're interested in further customizing your website, refer to our previous guide on "Adding Copyright Symbols in Wix: A Comprehensive Guide", which covers the basics of adding ™, ®, and © symbols to your Wix websites and documents.
Need Help?
If you encounter any issues or have questions about using Velo by Wix, feel free to reach out for assistance, contact WIXCreate. Our aim is to help you maximize your site’s potential and maintain its professionalism effortlessly.