hi
I want my sidebar to display 4 of the most recent posts and comments so I added the two built-in widgets but the problem is that the mark-up isn't even close to what I need
using my functions.php I've added
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h1 class="cyan">',
'after_title' => '</h1>',
));
?>
but that's only about 10% percent of the markup that I need...
the widgets return the following HTML code
<h1 class="cyan">Najnowsze komentarze</h1>
<ul id="recentcomments">
<li class="recentcomments">Qbs o <a href="http://fortywinks.pl/kkk/?p=16#comment-7">Lorem ipsum dolor sit amet</a></li>
<li class="recentcomments">kolejny test o <a href="http://fortywinks.pl/kkk/?p=1#comment-6">Witaj, świecie!</a></li>
<li class="recentcomments">admin o <a href="http://fortywinks.pl/kkk/?p=1#comment-5">Witaj, świecie!</a></li>
<li class="recentcomments">test o <a href="http://fortywinks.pl/kkk/?p=1#comment-4">Witaj, świecie!</a></li>
</ul>
and I'd like to have such a markup:
<h1 class="cyan">Najnowsze komentarze</h1>
<div class="box">
<ul>
<li class="comments"><a href="#">Lorem ipsum dolor sit amet.</a></li>
<li class="comments"><a href="#">Lorem ipsum dolor sit amet.</a></li>
<li class="comments"><a href="#">Lorem ipsum dolor sit amet.</a></li>
<li class="comments"><a href="#">Lorem ipsum dolor sit amet.</a></li>
</ul>
</div>
<div class="sideLine"> </div>
those <li class=""> are essential because I need a different class for the comments and another for posts
please help!
thanks