I'm getting validation errors around a widget I added via a new function. I forgot where I got the function code but I'm including it below. I think it's kicking out a
<li>
and a <div>
that aren't closing properly. For an example of the elements in action go to http://parkhillvet.com/resources/new-patients/. Any help diagnosing the problem would be greatly appreciated.
function my_header_widgets() {
if ( function_exists('dynamic_sidebar') && is_sidebar_active('header-aside') ) {
echo '<div id="header-aside" class="aside">'. "\n" . '<ul class="xoxo">' . "\n";
dynamic_sidebar('header-aside');
echo '' . "\n" . '</div><!-- #header-aside .aside -->'. "\n";
}
}
add_action('thematic_header', 'my_header_widgets', 8);