Support » Themes and Templates » How do I edit the Yoko theme to remove the top navigation bar?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You could use CSS to remove it… then you don’t need to muck around in the other theme files:

    #mainnav {
    display: none;
    }

    To not display the navigation via CSS display:none is an option. But if you want to delete the html code for the main navigation completely you can customize the header.php file and delete the code in line 37-39:

    <nav id="mainnav" class="clearfix">
    	<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    </nav><!-- end mainnav -->

    It’s best to use a child theme if you modify any of the themes template files so your customizations will be safe even with future parent theme updates. You can find more info on creating a child theme here: http://themeshaper.com/2009/04/17/wordpress-child-theme-basics/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I edit the Yoko theme to remove the top navigation bar?’ is closed to new replies.