0

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

2
  • now the website won't even come up to correct the error how do I update the theme or add a new theme?
    – user26721
    Commented Jan 29, 2013 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.
    – Steve
    Commented Jan 29, 2013 at 16:11

1 Answer 1

0

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.

2
  • 1
    In this particular case the editor isn't important. Simply shouldn't edit files on a production environment.
    – Steve
    Commented Jan 29, 2013 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
    Commented Jan 29, 2013 at 16:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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