Title: Parse error: syntax error, unexpected &#8216;&lt;&#039; in custom header
Last modified: July 17, 2017

---

# Parse error: syntax error, unexpected ‘<' in custom header

 *  Resolved [yxyphon](https://wordpress.org/support/users/yxyphon/)
 * (@yxyphon)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-custom-header/)
 * Hi,
    after I inserted a piece of php code in the custom header code of the theme
   I use I cannot open my page anymore. I receive this error message:
 * > Parse error: syntax error, unexpected ‘<‘ in /home/blacklan/brkrtest2/wp-content/
   > themes/twentyseventeen/inc/custom-header.php on line 36
 * As I’m just testing features, I don’t host the pages on a ftp or anything like
   that, so I know how to repair it, but I don’t know how to access the code page
   and correct it. Can anyone tell me if it’s possible and how to ?
 * If it’s not possible to correct this, do you think it would be possible to export
   my data and import it in anoter website template ?

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-custom-header/#post-9326654)
 * Did you edit the theme’s file? BAD BAD IDEA!
 * Get a fresh copy of twentyseventeen. Unzip it locally and upload inc/custom-header.
   php via FTP to remove the edits you made.
 * [https://wordpress.org/themes/twentyseventeen/](https://wordpress.org/themes/twentyseventeen/)
 *  Thread Starter [yxyphon](https://wordpress.org/support/users/yxyphon/)
 * (@yxyphon)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-custom-header/#post-9328434)
 * Yeah, I realized that just a second too late :p
    Thnaks a lot for the help, problem
   solved ! 😉

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

The topic ‘Parse error: syntax error, unexpected ‘<' in custom header’ is closed
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [yxyphon](https://wordpress.org/support/users/yxyphon/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-custom-header/#post-9328434)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
