Title: Syntax error after editing function.php file
Last modified: August 20, 2016

---

# Syntax error after editing function.php file

 *  [mendok1](https://wordpress.org/support/users/mendok1/)
 * (@mendok1)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-after-editing-functionphp-file/)
 * Hi All,
 * I was trying to edit the function.php file on my site so that it would not show
   the date when an entry was posted. I’ve obviously mucked it up as when I try 
   and load my site now I get the following message:
 * Parse error: syntax error, unexpected T_ENDIF in /home/qqczpkaq/public_html/wp-
   content/themes/twentyeleven/functions.php on line 574
 * I’m not sure what I’ve done so if anyone could help it would be really appreciated–
   pastebin link shown below:
 * [http://pastebin.com/jHauqJz0](http://pastebin.com/jHauqJz0)
 * Thanks

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-after-editing-functionphp-file/#post-2523891)
 * Re-upload a fresh copy of Twenty Eleven via [FTP](http://codex.wordpress.org/FTP_Clients)(
   or use whatever file management application your host provides):
    [http://wordpress.org/extend/themes/twentyeleven](http://wordpress.org/extend/themes/twentyeleven)
 * Do not edit the Twenty Eleven theme. It is the default WordPress theme and having
   access to an **unedited** version of the theme is vital when dealing with a range
   of site issues. [Create a child theme for your changes](http://codex.wordpress.org/Child_Themes).
 *  Thread Starter [mendok1](https://wordpress.org/support/users/mendok1/)
 * (@mendok1)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-after-editing-functionphp-file/#post-2523909)
 * Ok that’s great – thanks a lot for your help Esmi.

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

The topic ‘Syntax error after editing function.php file’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [mendok1](https://wordpress.org/support/users/mendok1/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-after-editing-functionphp-file/#post-2523909)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
