maverickguy
Member
Posted 2 years ago #
Hi,
I want my parent categories to show in my side bar widget but not the child categories...does anyone know an easy way to do this? I dont know coding at all.
The website is http://AmericasNewsNow.com
I know I can use "show as drop down" menu but i dont want to. I want to keep the child categories because they show up as drop downs on my tabs at the top of my site.
So, is there an easy way to keep the child categories but only display the parent categories in my sidebar widget??
Thanks!
sholditch
Member
Posted 2 years ago #
Yeah, just isolate the sidebar widget in your css and the class of the child category and use this:
div#sidebar div.side-widget ul li ul.children {
display: none;
}
That should do it. You can even get specific as to which categories you want to show sub categories.
maverickguy
Member
Posted 2 years ago #
Ok, Im a dummy when it comes to editing css. Do I go to the main stylesheet style.css or sidebar (sidebar.php). I went to sidebar.php and didnt see the exact code u mentioned. Where exactly do I look and replace?
sorry for being so dumb...
maverickguy
Member
Posted 2 years ago #
Ok, i saw a plugin called wp dtree which seems to work great. it would still be nice to know how to edit the css but this dtree plugin is pretty cool too!