Parse Error Syntax error unexpected $end in function.php!!! Please help!
-
Hi guys,
I’m a novice and I’m quite worried at the moment! My website is https://yourlifeamp.com. I was attempting to activate thumbnails for my theme by adding
add_theme_support( 'post-thumbnails', array( 'post' ) );
to my function.php. When I updated the file it worked fine but I decided I want to change my function.php back to default. I had backed up my function.php (by copying and saving it in a text editor). When I cut and paste the original function.php code back into “function.php” I received the following error:Parse error: syntax error, unexpected $end in /home/jjtd88/public_html/wp-content/themes/renegade/functions.php on line 353 (line 353 is the last line in the code)
I now cannot access my dashboard. I don’t understand why this would happen as I simply pasted the original code from the theme back into function.php?
By the way, I regularly have wordpress back ups sent to my email so I could revert to an earlier back up. Would this solve the problem? I thought I’d try and solve the problem before reverting to back up (I’d have to read up on how to do this anyway).
Here is the function.php code that I’m pasting in function.php:
[Large code excerpt removed by moderator. Per forum rules, please use the pastebin for all large code excerpts. It works better anyway.]
- The topic ‘Parse Error Syntax error unexpected $end in function.php!!! Please help!’ is closed to new replies.