Title: Invalid Code
Last modified: August 18, 2016

---

# Invalid Code

 *  Resolved [realepicurean](https://wordpress.org/support/users/realepicurean/)
 * (@realepicurean)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/invalid-code/)
 * Hi guys,
    My page wont validate since I added a menu to my header. Please tell
   me what I need to do…
 * [http://www.realepicurean.com](http://www.realepicurean.com)
 * I understand why the | is causing a problem, but aside from placing a <p> either
   side, don’t know how to fix it.

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

 *  [DianeV](https://wordpress.org/support/users/dianev/)
 * (@dianev)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/invalid-code/#post-499098)
 * Ah, the problem is that you’re putting characters *after* these pairs:
 * `<li></li>`
 * That is, you cannot have:
 * `<li></li> something here`
 * If you want the “pipe” character between them, try adding a border-left (or right)
   to your li a in your stylesheet. You’ll also have to do a border-left:none to
   the left-most link (or border-right:none to the right-most link), but that will
   do it.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/invalid-code/#post-499100)
 * You can also just put the pipe character in it’s own li. Usually works….
 *  [DianeV](https://wordpress.org/support/users/dianev/)
 * (@dianev)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/invalid-code/#post-499101)
 * Never thought of that one, vkaryl. Interesting.

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

The topic ‘Invalid Code’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [DianeV](https://wordpress.org/support/users/dianev/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/invalid-code/#post-499101)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
