• Resolved jvazjr

    (@jvazjr)


    i dont know how to remove the search form from my blog

    the form is at the top and to the right

    here is my blog

    jvazjrsblog.com

    any help is greatly appreciated

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hi,

    YOu need to edit the single.php and indes.php file of your theme and remove the code of search.php file and also remove search.php file from your theme.

    Thanks,

    Shane G.

    Thread Starter jvazjr

    (@jvazjr)

    what part do i have to edit

    Thread Starter jvazjr

    (@jvazjr)

    i dont see anything that says search form in those 2 files?

    Thread Starter jvazjr

    (@jvazjr)

    i found this code:

    /* Menu and search */

    #nav {
    clear: both;
    height: 32px;
    }

    #header #searchform {
    float: right;
    margin-left: 0;
    }

    #searchform {
    margin-left: 10px;
    width: 228px;
    padding-top: 7px;
    height: 28px;
    background: #ccc;
    background: url(images/bgsearch.jpg) left 3px no-repeat;
    }

    *:first-child+html #searchform { /* Filter for IE7 */
    padding: 5px 0;
    }

    * html #searchform { /* Filter for IE6 */
    padding: 5px 0;
    }

    #searchbox {
    margin-left: 8px;
    margin-bottom: 3px;
    width: 145px;
    background: none;
    border: none;
    }

    #searchbutton {
    width: 50px;
    background: none;
    border: none;
    }

    #searchbutton:hover {
    cursor: pointer;
    }

    @shame… he means take it out of the theme

    @jvazjr

    In your theme’s header.php, look for

    <div id="search"><form method="get" id="searchform" action="https://jvazjrsblog.com/">
    
    <div>
    <input type="text" value="" name="s" id="searchbox"/>
    <input type="submit" id="searchbutton" value="" />
    </div>
    </form></div> <!-- Closes search -->

    That is the code you need to delete if you do not want the search for there.

    Thread Starter jvazjr

    (@jvazjr)

    do i delete the whole code

    Thread Starter jvazjr

    (@jvazjr)

    i dont see that code

    Look for <?php get_search_form();?> in your theme’s template (.php) files and remove it.

    Thread Starter jvazjr

    (@jvazjr)

    i dont have a template file??

    Yes you do. Look in Admin/Appearance/Editor. That lists and allows you to edit all of the files that make up your theme. The .php ones are all template files of one type or another.

    Thread Starter jvazjr

    (@jvazjr)

    oh, sorry

    which file do i edit?

    Hard to say for sure but start by looking in header.php – near the bottom of that file.

    Thread Starter jvazjr

    (@jvazjr)

    i see this in the header file:

    <div id=”nav”>
    <div id=”search”><?php include (TEMPLATEPATH . ‘/searchform.php’); ?></div> <!– Closes search –>

      There you go! Delete:
      <div id="search"><?php include (TEMPLATEPATH . '/searchform.php'); ?></div> <!-- Closes search -->

      Thread Starter jvazjr

      (@jvazjr)

      the whole thing?

    Viewing 15 replies - 1 through 15 (of 17 total)
    • The topic ‘how to remove the search form’ is closed to new replies.