• Can anyone PLEASE help me…..I was in the process of trying to get rid of the post date in the twenty ten theme in the theme functions.php file and I must have made a mistake and it gave me this error:

    Parse error: syntax error, unexpected T_ENDIF in /home/nlhink/public_html/wp-content/themes/twentyten/functions.php on line 484

    I can’t get to the admin or dashboard page and that is all the comes up when I go to my page.

    If anyone can help me I would really appreciate it!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Firstly, you should never, never, never make edits to a live theme in a production environment for this very reason. Typos and errors can break your site!

    To fix it, you’ll need to log in to your site via FTP. Then rename the theme folder (/wp-content/themes/twentyten/) to something else (maybe “twentyten-2”). Then try to visit your site again.

    Renaming the folder will automatically disable the theme and throw a very minimal default theme on your site. But this means it won’t be broken any more.

    Now, either un-do whatever changes you made and rename the folder again, or download a fresh copy of Twenty Ten and place it on your site.

    Thread Starter nlhink

    (@nlhink)

    Thank you so much for your reply. I know this is a dumb question, but how do I log in to my site via FTP?

    I promise I will not monkey around with this again!

    There are many ways you can log into your site via FTP. You should have access already if you’re hosting your own site.

    Do you know how you connect to your server?

    https://filezilla-project.org/ is a useful FTP client you can use to connect to your server.

    Good luck!

    Thread Starter nlhink

    (@nlhink)

    Thanks everyone. I contacted my hosting company and they changed the theme for me and that seemed to work. Thanks!!!

    Glad you got it sorted! ??

    jennie_ledger

    (@jennie_ledger)

    Thanks for these responses @rachaely and @eric Mann: you’ve well and truly saved my arse as well!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Parse error: syntax error’ is closed to new replies.