Forums

Validation error - where? (4 posts)

  1. AlisonMooreSmith
    Member
    Posted 3 years ago #

    I have a question that is probably really obvious. When I try to validate my new blog, I get one error:

    Line 174, Column 10: end tag for "ul" which is not finished.

    My question is:

    Line 174 of what file?

    Sorry if this is a lame question.

  2. iridiax
    Member
    Posted 3 years ago #

    When you validate with the W3C, select the Show Source option and then click Revalidate. You can now click on the line number listed and it will take you to that line in your code. In your case, it's an extra </ul> after <h4>Links</h4> in your theme's sidebar (sidebar.php).

  3. AlisonMooreSmith
    Member
    Posted 3 years ago #

    I really appreciate your help.

    When I look at the sidebar.php code however, it does not match what is on the validation page. That code appears to be a compilation of all the codes that make up the index page??? (No where near 174 lines.)

    Not really knowing PHP, it looks to me like the sidebar.php creates a line item for each sidebar box? It has a "Links" item, but that does not have a unfinished ul tag in there. It does have one ul tag, but it's got <?php get_links_list('name'); ?> between the tags. There is no extra </ul> that I can see.

    Any ideas?

  4. AlisonMooreSmith
    Member
    Posted 3 years ago #

    Fixed. Well, I didn't really fix it. I just removed the entire links section. Never did figure out why it was spitting out the rejection. Now it validates correctly.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic