[resolved] Remove NavBar in TwentyTen Theme (5 posts)

  1. purpleoakdesign
    Posted 4 years ago #

    Hey everyone! I am currently trying to set up my WordPress blog. I am new to WordPress so go gentle and forgive my stupid questions. All I want to do is remove the NavBar at the top of the page.

    I have looked in the forums and all I have to do is put the following into my css:

    #nav_menu {
    display: none;

    Problem is, where exactly in the css do I place this? I know, stupid question I apologise.

    Any help is much appreciated guys.


  2. Matt Garner
    Posted 4 years ago #

    Use this anywhere in the css and it should work.
    #nav_menu {
    display: none !important;

    or remove this from the header.php and it should work
    <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>

    Note I haven't tested either so if it doesn't work let me know and I will check.

  3. purpleoakdesign
    Posted 4 years ago #

    Hey there I used your second solution by removing the code from the header.php. Its gone! Thank you, and thanks for replying so fast. Got lots more to figure out but thats a step in the right direction. ")

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes.

  5. purpleoakdesign
    Posted 4 years ago #

    Hi esmi I have a backup copy of all wordpress documents. I have just discovered child themes so will get it set up that way. Many thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic