• I’m using Twenty-Eleven with a child theme that adds a sidebar to posts.

    I want to just have the menu bar below the header to serve as a dividing line – with no text. Obviously, if I remove the navigation menu, then the theme reverts to a pages list.

    I’ve visited http://codex.wordpress.org/Template_Tags/wp_list_pages#Exclude_Pages_from_List however, I’m not entirely sure how to edit the header.php file or what not leave the menu bar in place – but without displaying text.

    I really appreciate the help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yes. It reverts to using the default menu.

    You should probably remove the menu altogether from your child theme’s header.php file and find some other way to create a dividing line, like a top border on the main content div.

    HTH

    PAE

    Thread Starter Nate Shivar

    (@nsb3)

    Awesome – thx peredur. For anyone browsing the forums, here’s **exactly** how I did it. (My method is a bit tedious, but it works)

    1. Copy header.php from twentyeleven to twentyelevenchild on server
    2. Go to editor in wordpress and open up header.php in twentyelelevenchild
    3. Scroll and you’ll see something like
    wp_nav_menu( array( 'theme_location' => 'primary' ) );
    4. CTRL-X that onto a notepad in case you don’t like the result
    5. Paste in
    wp_list_pages('exclude=57,73,43,44,116,5' ); The exclude pages are the one you don’t want in the menu. I don’t have that many pages, so I just punched them in individually. For other tags go to
    http://codex.wordpress.org/Function_Reference/wp_list_pages
    6. Save. Then mess with your CSS padding to close the gap!

    I thought you wanted to get rid of the navigation menu altogether.

    If all you want to do is to exclude some pages from the navigation menu, you should do that by creating a custom menu and setting it as your primary navigation menu. There’s no need to mess with the code at all.

    Cheers

    PAE

    Thread Starter Nate Shivar

    (@nsb3)

    Wow. Simplicity. I was thinking way too hard. Thank you again peredur!

    De nada

    PAE

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Text From Menu Bar’ is closed to new replies.