Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter Bodhipaksa

    (@haecceity)

    Bump.

    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

    (@haecceity)

    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.

    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

    (@haecceity)

    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!

    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

    You will notice that after the closing </li> you immediately have a <ul>

    Remove that <ul> and its corresponding closing tag

    Thread Starter Bodhipaksa

    (@haecceity)

    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.

    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

    (@haecceity)

    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?

    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

    (@haecceity)

    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.

    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

    (@haecceity)

    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

    (@haecceity)

    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!

    Congrats!

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

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