WordPress.org

Forums

How do I edit the Yoko theme to remove the top navigation bar? (3 posts)

  1. capsulewardrobes
    Member
    Posted 3 years ago #

    My site (still under construction) is at http://www.capsulewardrobes.co.uk. I am using the Yoko theme and wish to remove the navigation that is above the header. I understand I'll probably have to delete some HTML from the editor, but I can't work out which bit.

  2. Caroline Moore
    Member
    Posted 3 years ago #

    You could use CSS to remove it... then you don't need to muck around in the other theme files:

    #mainnav {
    display: none;
    }
  3. Elmastudio
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Topic