Support » Fixing WordPress » How to delete child categories in side bar widget?

  • 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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter maverickguy

    (@maverickguy)

    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…

    Thread Starter maverickguy

    (@maverickguy)

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to delete child categories in side bar widget?’ is closed to new replies.