So customizing of textwidgets for category posts only is done.
I customized
this list code of listamatic
using the div for Widget Content Box :
div.textwidget
as explained in
ATO>>Sidebars & Widgets>>Style Widget
and now
Recent Posts Widgets and Category Posts Textwidget are shown in the same way
BUT there is a problem:
every text widgets using in my sidebar has a border.
[here an example:
the right sidebar of
this post belonging to "Rugby" category has two text widgets:
1st a banner
2nd category posts lists
as yuo can see also the banner has a left border]
How can i do to specify that css that i wrote must be executes only to specified textwidget?
1) every text widget DIV has an id="text-decimalnumber" :
<div
id="text-11" class="widget widget_text">
<div class="widget-title">
<h3> XXX</h3>
</div>
--------
</div>
</div>
how to use this in my CSS list code?
Code:
div.textwidget li {
list-style-type:none;
display:block;
width:auto;
margin-bottom:2px;
}
div.textwidget a {
color:#666666;
font-weight:normal;
border-left:7px solid #3EAFAF;
text-decoration:none;
padding:0 0 0 5px;
display:block;
}
div.textwidget a:hover {
color:#000;
font-weight:normal;
border-left:7px solid #4B61D1;
display:block;
}
2)nd inserting a class in php code using in textwidget?
<?php wp_cat_posts(); ?>
plugins used :
-Category post widget &
-PHP Exec
Thnx