WordPress.org

Ready to get started?Download WordPress

Forums

hide subcategories (6 posts)

  1. thesilvertongue
    Member
    Posted 3 years ago #

    my site is http://www.thesilvertongueonline.com
    I want to only display the main menu, I don't want the drop down categories to display. Does anyone know how to hide those.

    Thanks

  2. stastic
    Member
    Posted 3 years ago #

    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.

  3. thesilvertongue
    Member
    Posted 3 years ago #

    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.

  4. stastic
    Member
    Posted 3 years ago #

    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.

  5. thesilvertongue
    Member
    Posted 3 years ago #

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

  6. stastic
    Member
    Posted 3 years ago #

    not a problem.

Topic Closed

This topic has been closed to new replies.

About this Topic