Date script

Hello,

I have added the script detailed in the attached image into the footer content field, but it is not displaying. Is this the correct way to insert a date into the X footer?

Thanks,

Mark

Hi Mark,

Thanks for writing in! You can use the following example code in your footer content area.

<p>Copyright <span id="year">TEXT</span> Company Name - All Rights Reserved.</p>

Then, add the following JavaScript code into your X -> Theme Options -> JS area.

jQuery(document).ready(function() {
  var currentYear = (new Date).getFullYear();
  jQuery("#year").text( (new Date).getFullYear() );
});

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.