Adding a Dynamic Year to the Copyright Notice in the Footer Area
Purpose:
To include a dynamic year in the copyright notice in the footer area of your website so you don't have to remember to update this notice every year.
Solution:
-
Select
System
(horizontal top menu) /
Configuration.
-
Go to the
General
section, and then click on the
Design
tab.
-
Expand the
HTML Head
panel.
-
Copy and paste the following in the
Miscellaneous Scripts
field:
<!-- DYNAMIC COPYRIGHT YEAR IN FOOTER -->
<script language="javascript" type="text/javascript"> var dateObject=new Date(); </script>
-
Expand the
Footer
panel.
-
Copy and paste the following in the
Copyright
field and modify as needed:
© <script type="text/javascript"> document.write(dateObject.getFullYear()); </script> by [YOUR COMPANY NAME]. All rights reserved.
-
Save your changes.
-
Clear the cache (System / Cache Management > Flush Magento Cache button)
Article ID: 172
Created On: Tue, Jun 12, 2012 at 5:23 PM
Last Updated On: Fri, Apr 29, 2016 at 9:25 AM
Online URL: http://help.ncrretailonline.com/article/adding-a-dynamic-year-to-the-copyright-notice-in-the-footer-area.html