Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
1  
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
add comment

1 Answer

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
1  
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
1  
@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
add comment

Your Answer

 
discard

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.