Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i want to hide subcategories in widget sidebar . just in widget sidebar i was added in style.css this code

.children { display:none;}

but this code do hide to the threaded comments

what is the way to hide just sub categories in sidebar

share|improve this question
add comment

closed as off topic by s_ha_dum, Michael, toscho Mar 5 '13 at 14:50

Questions on WordPress Development Stack Exchange are expected to relate to WordPress within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 0 down vote accepted

You didn't give us markup so I can't know if this is correct but

.sidebar .children { display:none;}

EDIT: I think you're looking to hide your .commentlist .children correct? Line 1460-1463 of your file are the .children selector. try making each of them

ol.commentlist li ul.children li.depth-2 { margin:0 0 3px; display:none}
ol.commentlist li ul.children li.depth-3 { margin:0 0 3px; display:none}
ol.commentlist li ul.children li.depth-4 { margin:0 0 3px; display:none}
ol.commentlist li ul.children li.depth-5 { margin:0 0 3px; display:none}

Is this a widget in your sidebar? I can't tell without the markup, you only gave the .css. What is the link to your website?

share|improve this answer
    
.sidebar .children { display:none;} its not work –  user2075379 Mar 5 '13 at 14:38
    
thanks man now its work with this code .sidebar_content .children { display:none;} –  user2075379 Mar 5 '13 at 14:41
    
Awesome! Glad you got it friend. –  BenRacicot Mar 5 '13 at 14:44
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.