Support » Fixing WordPress » Removing nav bar below header

  • Resolved cohistorian


    I need to remove the nav bar below the header on this site, I’ve upgraded and it seems that what I’ve done “before” isn’t working. Can somebody give me a hint or css code (and if I need to tweak php, let me know which file and where to put the tweaking)? Am using Weaver II and have adjusted all settings that I can see. Nothing works. Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • I see you’ve created a sidebar menu. So, just make a blank menu for the header.

    Go to appearance > menus
    Click the ‘create a new menu’ link
    Call it ‘Blank’
    Save it
    Take all the entries off it so it has no contents anyway
    Save that
    click locations
    choose blank as the main menu

    thank you!!! simple, too, big help on a snowy friday afternoon, can’t go Harley-ing anyway.

    ok, one more question, is there a way to decrease the spacing betwixt the header and the content title (like, Home, etc.)?

    Yes. There is: go to appearance > editor
    find header.php
    find the place where it says:

    `<div id=”navbar” class=”navbar”>
    <nav id=”site-navigation” class=”navigation main-navigation” role=”navigation”>
    <h3 class=”menu-toggle”><?php _e( ‘Menu’, ‘twentythirteen’ ); ?></h3>
    <a class=”screen-reader-text skip-link” href=”#content” title=”<?php esc_attr_e( ‘Skip to content’, ‘twentythirteen’ ); ?>”><?php _e( ‘Skip to content’, ‘twentythirteen’ ); ?></a>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu’ ) ); ?>
    <?php get_search_form(); ?>
    </nav><!– #site-navigation –>
    </div><!– #navbar –>

    (obviously, you can see this is the twentythirteen theme, but the theory is the same.)

    Delete all the stuff above.
    hey presto: no site navbar.

    sorry, should have made that clearer: no navbar because you’re not using it. Removing the <div> in header.php makes the rest of the page move up into it’s place.

    Hm, not find that code in header.php

    Which theme are you using?

    Weaver II

    OK. Different tactic.

    I just downloaded and installed weaver II to my test website.
    I got the nav to vanish thus:

    Go right to the bottom of the header.php file. look for

    /* ======== BOTTOM MENU ======== */
    echo “</div> <!– #wrap-header –>\n”;

    now, add two forward slashes in front of do_action, like this //do_action('weaver_nav','bottom');

    TA DA! did it!!!! thank you so very much!

    🙂 tick the box below for resolved, then.


Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Removing nav bar below header’ is closed to new replies.