Support » How-To and Troubleshooting » [Resolved] Help! Lost my navigation bar!!

[Resolved] Help! Lost my navigation bar!!

  • I am loosing my mind. In an effort to clean up some of my code (I am super beginner) I lost my navigation bar. Can anyone help me find it? What did I change by accident? I tried to copy the functions.php to my child theme but I was getting an error message there there was some contradicting code. Could that have anything to do with it?

    Here’s the URL

Viewing 9 replies - 1 through 9 (of 9 total)
  • By “navigation bar” do you mean a site navigation, or the WordPress adminbar?

    You have an open html comment just before your search form that is swallowing up your navigation.


    Best way get your theme back is to install the theme I assume is twenty eleven theme.

    An easy way to debug this sort of thing is to use the Safari Web Inspector or the Firefox Firebug plugin. Thats how I found that unclosed comment.

    Peter can you copy and paste the offending code… I am still kind of new to this. Thanks so much!

    The code is

    					<form method="get" id="searchform" action="http://www.test.rosiesyarncellar.com/">

    That <!– is an html comment and this particular one is not closed, so it turns the search form and your nav bar off. Start by removing the <!–. It’s probably in your header.php file.


    Thanks so much! I was doing something to delete the search bar in the header. How would I go about doing that now? I can’t seem to hide it without also hiding the navigation.

    You could either use CSS to hide it or an HTML comment. To use a comment:

    <!--	<form method="get" id="searchform" action="http://www.test.rosiesyarncellar.com/">
    		<label for="s" class="assistive-text">Search</label>
    		<input type="text" class="field" name="s" id="s" placeholder="Search" />
    		<input type="submit" class="submit" name="submit" id="searchsubmit" value="Search" />

    To use CSS change the form to <form id="searchform" and add a rule to your CSS to make it not display #searchform {display:none;}


    Did that work? If so you should mark this as resolved.


Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Help! Lost my navigation bar!!’ is closed to new replies.