WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to add Google Analytics and added it to the theme-option page by accident when I went to remove the added info I received the following error.

Parse error: syntax error, unexpected '<' in /home/content/07/9999407/html/wp-content/themes/twentyeleven/inc/theme-options.php on line 416

Is there a way to restore the twenty eleven theme-option? Self taught and not doing well apparently

share|improve this question
now the website won't even come up to correct the error how do I update the theme or add a new theme? – user26721 Jan 29 '13 at 15:56
Are you saying you directly edited the theme-options.php file? If so simply download the theme to your local machine; them FTP the file to your server. That will restore it. – Stephen Jan 29 '13 at 16:11

You will need to login over FTP, or via some file manager supplied by your host (cPanel and Plesk have built in FTP-like file managers), and replace that file with a clean one. After which, don't use the file editor. It is dangerous, like working on an airplane while it is in the air.

share|improve this answer
In this particular case the editor isn't important. Simply shouldn't edit files on a production environment. – Stephen Jan 29 '13 at 16:17
@Stephen, yes, that too... absolutely. I assumed the asker was using the editor given that these problem are easily undone if you are using FTP and impossible if you are using the editor. – s_ha_dum Jan 29 '13 at 16:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.