• I’m completely new to WP and I installed it yesterday and promptly set about hacking the template into a million little pieces. I figure I’m okay with HTML and CSS but absolutely clueless when it comes to PHP.

    Anyway, I’ve got my site looking like something I intended (ie not the default template) but I’m getting two validation errors which I simply cannot spot.

    It’s somewhere in my sidebar and it’s something to do with a list.

    Error 1: “Line 71, column 9: end tag for element “li” which is not open”

    Error 2: “Line 73, column 4: end tag for element “ul” which is not open”

    Now I know what that says, and I even know what it means. But then I go and look at my template I simply cannot see where the mistake is. Could someone please look at my page source and point me in the right direction? The sidebar comes before the main content in the source code because I used floats to get the layout how I wanted.

    Site located here: http://www.cycloblog.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter afx237vi

    (@afx237vi)

    Okay, now I can see that the error is in the syndication bit. But in my template I have

    <code><ul>
    <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> 2.0'); ?></a></li>
    <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr> 2.0'); ?></a></li>
    </ul></code>

    I still can’t see where the errant tags are in the template…

    70: <li><a href="http://www.cycloblog.com/wordpress/wp-commentsrss2.php" title="The latest comments to all posts in RSS">Comments <abbr title="Really Simple Syndication">RSS</abbr> 2.0</a></li>
    71: </ul></li>
    72:
    73: </ul>
    74:
    75: </div>

    Just delete the </li> on line 71, and the </ul> on 73

    Was just looking through the validator myself. I printed out the source, and used a highlighter to pick out all the opening and closing ul and li elements. I concur with Podz that lines 71 and 73 contain “unopened” elements and should be deleted.

    Thread Starter afx237vi

    (@afx237vi)

    Okay guys thanks for the help but I think something has gone wrong.

    The reason I couldn’t spot my error is because the index is not updating when I hit ‘update file’. I orignally installed WP into ./wordpress/ right? Well I didn’t want my index there, I wanted it in the root directory. So I followed the steps here:

    http://wordpress.org/docs/installation/different-address/

    and left the old index in the wordpress directory. However, when I try to update the template, it seems the old one was updating and the new one wasn’t changing. So I renamed the old one to index_old.php but now I’m a bit stumped because in the templates section it says ‘Oops, no such file exists! Double check the name and try again, merci.’

    How can I get it to figure out where the index is when I have http://www.cycloblog.com filled in for Blog URI. Help!

    I think (and if i remember I’ll do a setup tomorrow to test what can and cannot be done) that editing files using in built-in editor cannot be done once they leave the initial directory.

    That said – backup these files first – and open up ‘templates.php’ Look around line 150-ish and a list of the editable files appears.
    Carefully add the index you want changing to that, but do be careful to get the path correct.
    Upload, try ….

    If no joy, then offline editing will be what you’ll have to do.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Validation trouble with ul’ is closed to new replies.