WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing Search Button From Header (3 posts)

  1. naomadoriguzzi
    Member
    Posted 3 years ago #

    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

  2. govpatel
    Member
    Posted 3 years ago #

    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.

  3. naomadoriguzzi
    Member
    Posted 3 years ago #

    Oh my gosh I love you!!! Thanks it worked!!! :)

Topic Closed

This topic has been closed to new replies.

About this Topic