Removing the Search Bar in the Menu in Twenty Eleven Theme
-
Hello,
I have been searching for a few hours now on how to remove the search bar in the menu for the Twenty Eleven theme.
I have tried several different options in my stylesheet, but nothing does the trick.
Since I am new to all of this since yesterday, a few questions:
1. When I edit the the stylesheet, should I be in my control panel on my web host or somewhere else?
2. Once I am there and make a change, do I just have to hit “save changes,” then refresh my web page to see changes?
3. What code do I add to my stylesheet to remove the search bar?I have tried this code, but to no avail…
`<!–<?php
// Has the text been hidden?
if ( ‘blank’ == get_header_textcolor() ) :
?>
<div class=”only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>”>
<?php get_search_form(); ?>
</div>
<?php
else :
?>
<?php get_search_form(); ?>
<?php endif; ?>–>What am I diong wrong?
- The topic ‘Removing the Search Bar in the Menu in Twenty Eleven Theme’ is closed to new replies.