The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. capsulewardrobes
    Posted 5 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
    Posted 5 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
    Posted 5 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