WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Removing Search Button From Header

[Resolved] Removing Search Button From Header

  • I would like to remove the search button from the header but don’t want to delete wrong code.

    http://www.davecynarcountrymusic.com

    /head>
    <body <?php body_class(); ?>>
    <div id=”wrapper” class=”hfeed”>
    <div id=”header”>
    <div id=”masthead”>
    <div id=”branding” role=”banner”>
    <?php goo_logo(); ?>
    </div><!– #branding –>
    <div id=”site-search” >
    <?php get_search_form(); ?>
    </div><!– #search form –>

    </div><!– #masthead –>
    <div id=”access” role=”navigation”>
    <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    <div class=”skip-link screen-reader-text”>“><?php _e( ‘Skip to content’, ‘twentyten’ ); ?></div>
    <?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. */ ?>

    Thanks for your help! This is the code from the header file

Viewing 2 replies - 1 through 2 (of 2 total)
  • I your style.css around line 385 look for this code

    #site-search {
    background:transparent url(images/bg-searchform.png) no-repeat scroll left top;
    clear:right;
    float:right;
    font-style:italic;
    height:60px;
    margin:50px 41px 28px 0;
    width:224px;

    add
    display:none;

    when you want it back just delete that from code.

    Oh my gosh I love you!!! Thanks it worked!!! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Removing Search Button From Header’ is closed to new replies.