WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing nav bar below header (13 posts)

  1. cohistorian
    Member
    Posted 6 months ago #

    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!

    http://westernslopehog.com/wsh/

  2. wiresplus
    Member
    Posted 6 months ago #

    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

  3. cohistorian
    Member
    Posted 6 months ago #

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

  4. cohistorian
    Member
    Posted 6 months ago #

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

  5. wiresplus
    Member
    Posted 6 months ago #

    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.
    Save
    hey presto: no site navbar.

  6. wiresplus
    Member
    Posted 6 months ago #

    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.

  7. cohistorian
    Member
    Posted 6 months ago #

    Hm, not find that code in header.php

  8. wiresplus
    Member
    Posted 6 months ago #

    Which theme are you using?

  9. cohistorian
    Member
    Posted 6 months ago #

    Weaver II

  10. wiresplus
    Member
    Posted 6 months ago #

    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 ======== */
    //do_action('weaver_nav','bottom');
    echo "</div> <!-- #wrap-header -->\n";

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

  11. cohistorian
    Member
    Posted 6 months ago #

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

  12. wiresplus
    Member
    Posted 6 months ago #

    :) tick the box below for resolved, then.

  13. cohistorian
    Member
    Posted 6 months ago #

    Resolved

Reply

You must log in to post.

About this Topic