WordPress.org

Support

Support » How-To and Troubleshooting » hide subcategories

hide subcategories

Viewing 5 replies - 1 through 5 (of 5 total)
  • There could be a setting in your theme options to disable the category navigation.

    If not you can find this in your style.css:

    #subnavbar {
    	background: #393939;
    	width: 920px;
    	height: 25px;
    	color: #FFFFFF;
    	margin: 0px auto 0px;
    	padding: 0px 0px 0px 0px;
            z-index:100;
            }

    Then add a “display: none;” like this:

    #subnavbar {
    	background: #393939;
    	width: 920px;
    	height: 25px;
    	color: #FFFFFF;
    	margin: 0px auto 0px;
    	padding: 0px 0px 0px 0px;
            z-index:100;
            display: none;
    	}

    That will do it.

    Shayne,

    Thanks for the reply and advice…it worked. Only issue is when i do that it removes the category menu all together and keeps the page menu. when actually I want to keep the category menu, i just don’t want the drop down into sub cats.

    Is there any way that you can think of to make the category menu the main menu, minus the drop down for child categories. And possibly move the page menu. I’ve been fighting with this for a while.

    Thanks for your help.

    Oh, ok…so find this style in “style.css” (a little below the previous style mentioned):

    #subnav li li {
    	float: left;
    	margin: 0px;
    	padding: 0px;
    	width: 140px;
            z-index:100;
            }

    Add the “display: none;” to it:

    #subnav li li {
    	float: left;
    	margin: 0px;
    	padding: 0px;
    	width: 140px;
            z-index:100;
            display: none;
    	}

    As for swapping out the main nav with the category nav, you should be able to see that code in “header.php” and switch it there.

    thanks, you’re awesome. I will look around in the header for a why to switch those around. Thanks again!

    not a problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘hide subcategories’ is closed to new replies.