• Resolved purpleoakdesign

    (@purpleoakdesign)


    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.

    Andrew

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    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. “)

    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.

    Thread Starter purpleoakdesign

    (@purpleoakdesign)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove NavBar in TwentyTen Theme’ is closed to new replies.