WordPress.org

Support

Support » Themes and Templates » Remove "No Categories"?

Remove "No Categories"?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Need to know how you have made your menu.

    Can you post the menu section of your header.php.

    esmi

    @esmi

    Forum Moderator

    If the code exceeds 10 lines, please use the pastebin as per the Forum Rules.

    It looks like my nav menu is displayed here:

    <!-- <div id="mainMenu"> -->
    			<?php if ( function_exists( 'wp_nav_menu' ) ){
    					wp_nav_menu( array( 'theme_location' => 'main-menu', 'container_id' => 'mainMenu', 'container_class' => 'ddsmoothmenu', 'fallback_cb'=>'primarymenu') );
    				}else{
    					primarymenu();
    			}?>
    <!-- </div> -->
    </div>
                <!-- END MAIN MENU-->

    I used an existing custom theme and it just displays them from the pages created, but I’m not sure about why the categories part is there, because I don’t see what part controls that. Can anyone help?

    esmi

    @esmi

    Forum Moderator

    You either need to examine the primarymenu() function (probably in function.php) or sidestep the whole issue and create a custom menu instead.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove "No Categories"?’ is closed to new replies.
Skip to toolbar