Problem with Javascript in Footer

Dear Forum!

I use Javascript for an automatic display of the year.

<span id="year">TEXT</span>

with the JS-Code:

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

But on my mobile site it isnt working. There just the text “TEXT” is coming up.

I cant figure out whats the issue.

Thank you in advance!
Best regards,
Johannes

Hi Johannes,

Unfortunately, the custom code is beyond the scope of Theme Support, I would suggest you hire a developer who can assist you to do the customization or you can avail of our newly launched service called One, where we answer the questions beyond normal theme support.

Thanks

Hi!

Thank you for your answer and info!

Best regards,
Nino

Hi Nino,

You are most welcome.

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