Title: website locked after adding code to custom functions php
Last modified: August 20, 2016

---

# website locked after adding code to custom functions php

 *  [loz65](https://wordpress.org/support/users/loz65/)
 * (@loz65)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/website-locked-after-adding-code-to-custom-functions-php/)
 * Can anyone help please me get my site back!! Being a half wit and messing around
   with things I frankly shouldn’t be allowed anywhere near, I added a small piece
   of code to the custom functions php. Now I get the following message and can’t
   get into either my site or the WordPress dashboard:
 * Parse error: syntax error, unexpected ‘.’ in /home/loz65/public_html/wp-content/
   themes/thesis_182/custom/custom_functions.php on line 15
 * If anyone has any ideas I would be very grateful!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/website-locked-after-adding-code-to-custom-functions-php/#post-2373396)
 * You need to FTP to your website and copy the functions.php file to your desktop.
   Undo whatever change you made just before it locked… and then FTP it back to 
   your server, overwriting the original.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/website-locked-after-adding-code-to-custom-functions-php/#post-2373397)
 * You can use an ftp client or the file manager in your hosts control panel to 
   undo the edit you made. Or, you can just use the same tools to upload a replacement
   copy of the file from your last backup. Or, as a last resort, you can use the
   same tools to rename/delete the thesis theme entirely and let WordPress fall 
   back to the default theme.
 *  Thread Starter [loz65](https://wordpress.org/support/users/loz65/)
 * (@loz65)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/website-locked-after-adding-code-to-custom-functions-php/#post-2373398)
 * Thanks guys. Will give it a go and see how I get on…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘website locked after adding code to custom functions php’ is closed to
new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [loz65](https://wordpress.org/support/users/loz65/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/website-locked-after-adding-code-to-custom-functions-php/#post-2373398)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
