I've been pouring over my code for the last 2 days - I'm a compelte novice so it was in a right mess.
It's down to 2 errors now, but no matter how often I look at the code, I can't fathom out what's wrong with it.
Any help much appreciated. I should also have mentioned that I've got 4 widgets in the sidebar. I've tried to add in code for the placing of the 4th widget, but it is stilling showing up with these 2 errors. Thanks again.
Cheers
The 2 errors are :
Line 124, Column 84: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.
…chives" class="widget widget_archive"><h2 class="widgettitle">Archives</h2>
Line 131, Column 52: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.
…365883691" class="widget widget_text"> <div class="textwidget"><a href="
and the code as follows:
<div id="sidebar">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
<
ul>
<li><h2>Archives</h2>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<ul>
<li><h2>Categories</h2>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
</li>
<?php /* If this is a page */ if ( is_home() || is_page() ) { ?>
<?php get_links_list(); ?>
<ul>
<li><h2>Meta</h2>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php } ?>
<?php endif; ?>
</li>
</li>
</li>
</ul>
</div>