Hej
Er i gang med at kode et nyt design, og fået Widgetizet (eller hva det nu hedder) min sidebar.
Men jeg kan ikke style kategori widget'et via css :S
HTML:
<div class="categories-344572421">
<h4>Kategorier</h4>
-
<li class="cat-item cat-item-1">
Ikke kategoriseret
</div>
CSS:
.categories-34457242 {
margin-top: 20px;
}
.categories-34457242 h4{
color: #414141;
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: normal;
font-size: 16px;
margin-left: 10px;
}
.categories-34457242 ul{
margin-left: 10px;
}
.categories-34457242 li{
background: url(images/sidebar-li.png) no-repeat left center;
margin-top: 10px;
padding-left: 22px;
padding-top: 2px;
padding-bottom: 2px;
}
Functions.php:
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<div class="%1$s">',
'after_widget' => '</div>',
'before_title' => '<h4>',
'after_title' => '</h4>',
));