Title: syntax error
Last modified: August 20, 2016

---

# syntax error

 *  [wbasc](https://wordpress.org/support/users/wbasc/)
 * (@wbasc)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-29/)
 * Hi!
 * I was following a tutorial to add a logo to the header. This is the line I added
   to the header template (header.php) of the twentyeleven
    theme:
 * <img src=”[http://www.wbasc.net/wp-content/uploads/2011/07/wbasc-banner.jpg”&gt](http://www.wbasc.net/wp-content/uploads/2011/07/wbasc-banner.jpg”&gt);
 * I copied the code as instructed, replacing the placeholder url in the tutorial
   with my actual url for the logo, and put it in place of the line of code following//
   add the blogname
 * When I refreshed the site, I received an error message that this line of code
   on 36 contained a syntax error. I double checked the tutorial and it was copied
   correctly so I need to know what the syntax error is (so I know what not to do)
   and how to fix it.
 * Thank you!

Viewing 1 replies (of 1 total)

 *  [fonglh](https://wordpress.org/support/users/fonglh/)
 * (@fonglh)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-29/#post-2199489)
 * That’s HTML code. You probably copied it into a section where it’s expecting 
   PHP code.
 * You have to end the php section with ?> and reopen it with <?php
    The header.
   php file itself should have some examples of these tags.

Viewing 1 replies (of 1 total)

The topic ‘syntax error’ is closed to new replies.

## Tags

 * [header logo](https://wordpress.org/support/topic-tag/header-logo/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [fonglh](https://wordpress.org/support/users/fonglh/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/syntax-error-29/#post-2199489)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
