Support » Fixing WordPress » Validating XHTML help

  • mordak

    (@mordak)


    Hi I am down to my last 8 errors and don’t know how to fix them. Can someone help me by explaining what I should do for my blog which can be found at alternativetosanity.com

    thanks,

    @s

Viewing 15 replies - 1 through 15 (of 27 total)
  • Nazgul

    (@nazgul)

    You have a </head> in your footer. Change that to </body>.

    In your header, just above the line <div id="page"> add the following:
    </head>
    <body>

    Start with this and see where it gets you.

    mordak

    (@mordak)

    Thank you. I tried that and it still similar errors.

    Nazgul

    (@nazgul)

    You went down from 9 to 4 errors’ so it’s a start.

    Next: Add a <title>Some Text Here</title> section within your <head>...</head> section.

    And add a </ul> above this line in your sidebar
    <div id="text-3" class="widget widget_text"> <h2 class="widgettitle">Page Rank</h2>

    Doodlebee

    (@doodlebee)

    1) you have no opening body tag. Oh wait, you do – but it’s halfway down the page – right above the “sidebar2” div. What’s that all about? You shouldn’t start *any* content on a page without an opening body tag – inyour case, one that’s in the right place! How did it get down inside of your content?

    2) under div id=”sidebar” (at the bottom of the page) you’re missing some closing tags:

    <div id="sidebar">
    <ul>
    <li id="linkcat-1"><h2>Blogroll</h2>
    <ul>
    <li><a href="">One in the Evening</a></li>
    <li><a href="">Urban Semiotic</a></li>
    ...etc...
    </ul>
    </li>
    <li id="linkcat-2"><h2>Forums</h2>
    <ul>
    <li><a href="">Alternative to Sanity Forums</a></li>
    <li><a href="">The Frozen Far</a></li>
    </ul>
    </li>
    <!-- you need closing tags here - you're missing a </ul> tag right in this spot -->

    Try starting with those two issues and see if it doesn’t clear some stuff up.

    mordak

    (@mordak)

    I added the title line but I can’t find that line in my sidebar. I am using the widgets and so I think that affects it.

    mordak

    (@mordak)

    okay I can’t seem to edit that part either

    mordak

    (@mordak)

    This is my first blog and I am just using a standard theme and using the plugins found on the Codex.

    yosemite

    (@yosemite)

    Looks like your down to 2 errors, getting close ;’)

    mordak

    (@mordak)

    Hehe. getting very close I just can’t find the place to edit those last 2 errors. One is part of a widget and the other is part of the WordPress blog roll

    mordak

    (@mordak)

    Doodlebee, I have no idea how it got down there and wouldn’t even begin to know where to look or how to fix it. hehe. I’m a total noob.

    mordak

    (@mordak)

    Anyone familiar with the sidebar widgets know where I should go to correct those last 2 errors?

    yosemite

    (@yosemite)

    Missing a li?

    Presentation:Sidebar Widgets

    You’ve got a text widget there (prolly the one with the amazon code). It looks like it might be missing an opening li. If it’s not obvious, cut and paste it here (between backticks).

    mordak

    (@mordak)

    I have edited the actual text for the sidebar text widget and it tells me i can’t put an li there.

    here is the actual text

    <a href="http://pr.blogflux.com/"><img src="http://pr.blogflux.com/pr.php" alt="Google PageRank Checker Tool" width="80" height="15" border="0" /></a>

    Doodlebee

    (@doodlebee)

    Your issues are here, in this area:

    <div id="text-3" class="widget widget_text"> <h2 class="widgettitle">Page Rank</h2>

    You have a list there:

    <div class="textwidget">
    <li>
    <a href="http://pr.blogflux.com/">...

    You’re opening your <li> without a <ul> or <ol> tag, which causes the invalidation. Anytime you have a <li>, you have to be sure you have the beginning list tags.

    Then it says for that <li> tag, you don’t have a closing </li> tag. If it’s open, it’s gotta be closed.

    yosemite

    (@yosemite)

    doodlebee has a +3 css wand.

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Validating XHTML help’ is closed to new replies.