Title: Sidebar validation issues
Last modified: August 18, 2016

---

# Sidebar validation issues

 *  Resolved [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/)
 * My sidebar has validation issues, mostly with `<li>` elements. See: [http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bodhipaksa.com%2Fblog%2F](http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bodhipaksa.com%2Fblog%2F)
   for a report.
 * I’ve poked around can’t figure out what the problem is. The sidebar code is at
   [http://pastebin.com/656734](http://pastebin.com/656734).
 * Any help much appreciated.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/sidebar-validation-issues/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sidebar-validation-issues/page/2/?output_format=md)

 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-372970)
 * Bump.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-372973)
 * Hi,
    I don’t see anything at pastebin.com. I’ll look at your source code.
 * **Edit**
    I have to go now – if no one helps you in the next few hours, email
   me and I’ll work it out. samboll at yahoo dot com
 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373005)
 * Thanks for the offer, Samboll. I’ll certainly email you. I’m not sure what’s 
   going on with pastebin. I’d assumed that it would save my code but it doesn’t
   seem to “stick”. I’ve never used it before so I may be missing something. Anyway,
   the email will be on the way in a couple of minutes.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373007)
 * If you emailed me, it must have went in the junk folder.
    Try pastebin again 
   or use the contact form on my website. It’s just a test blog for a customer, 
   but it’s fully functional.
 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373009)
 * Boy! Okay, I used the contact form on comeuphither and hopefully that’ll get 
   to you. I mistyped my email address, which should end wildmind.org.
 * Merci!
 *  [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373015)
 * Checked line 239:
    [http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bodhipaksa.com%2Fblog%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&verbose=1#line-239](http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bodhipaksa.com%2Fblog%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&verbose=1#line-239)
 * You will notice that after the closing `</li>` you immediately have a `<ul>`
 * Remove that `<ul>` and its corresponding closing tag
 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373020)
 * Thanks Ajay. The problem is I can’t find what in the php code is causing that`
   <ul>`. I think I now have pastebin working, and the URL is [http://pastebin.com/659257](http://pastebin.com/659257).
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373044)
 * Hi,
    Sorry I haven’t gotten back sooner. I can’t find anything wrong with your
   sidebar.php. Do you have a plugin or something else adding code? I’ll be gone
   for the weekend. Sorry I couldn’t help you.
 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373053)
 * The only active plugins I have are Kimili flash plugin and Akismet. Neither of
   those should do anything to the sidebar.
 * Anyone else have any ideas?
 *  [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373058)
 * The problem is around the code at background. I don’t know what is generating
   it, but the background sections is getting enclosed in the `<ul>`
 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373060)
 * Interesting. That part of the sidebar code isn’t in
    `<ul>` or `<li>` tags at
   all for some reason. I’ll try playing around with it and see what happens. Many
   thanks.
 *  [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373061)
 * Open up all the files in your theme and find out where it is.
 * It could be in index.php or home.php if it is not in the sidebar.php
 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373062)
 * What I meant is that the code is in the sidebar, but it’s not in list tags.
 * Anyway, I changed `<?php wp_list_pages('title_li=<h2>Background</h2>' ); ?>`
 * to
 * `<li><h2>Background</h2></li>
    <ul> <?php wp_list_pages('title_li=' ); ?> </ul
   >
 * It renders fine on the page and gives the following html:
 * `<li><h2>Background</h2></li>
    <ul> <li class="page_item"><a href="http://www.
   bodhipaksa.com/blog/about/" title="About Bodhipaksa">About Bodhipaksa</a></li
   > </ul>
 * However, this makes no difference to the number of validation errors.
 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373063)
 * Ha! Got it fixed. I’d misplaced a `</li>` tag.
 * I also hadn’t made the code for an image self-closing. The sucker now validates!
 *  [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/sidebar-validation-issues/#post-373079)
 * Congrats!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/sidebar-validation-issues/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sidebar-validation-issues/page/2/?output_format=md)

The topic ‘Sidebar validation issues’ is closed to new replies.

## Tags

 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 3 participants
 * Last reply from: [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/sidebar-validation-issues/page/2/#post-373084)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
