Skip to main content
February 27, 2013
Question

Error in template editor when trying to save PHP changes?

  • February 27, 2013
  • 3 replies
  • 968 views
I wanted to change my copyright 2012 to a simple PHP copyright <? print(Date("Y")); ?>, but when I try to do so in the template editor, it errors trying to save. Multiple times. If I change 2012 to 2013 it saves fine, but that just puts off the problem for a year.

Anyone else seen an issue where adding PHP to a template causes it to error out saving? Were you able to get around it?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Jep_Castelein2
Level 10
February 28, 2013
You can't add PHP to a template. There are a couple of system PHP includes, but you can't add your own. 
February 28, 2013
For this case, Javascript might work pretty well though.
February 28, 2013
Use Javascript, here's the code you need: https://gist.github.com/longjasonm/4658095