Tell me more ×
WordPress Answers 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

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

Questions on WordPress Answers are expected to relate to WordPress within the scope defined in the FAQ. 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 closed questions here.

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 at 14:38
thanks man now its work with this code .sidebar_content .children { display:none;} – user2075379 Mar 5 at 14:41
Awesome! Glad you got it friend. – Ben Racicot Mar 5 at 14:44

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