• Resolved gary1579

    (@gary1579)


    Hello,

    I have been trying to remove a search box for a couple of hours this afternoon. The search box is right in the header area.

    I seem to have had success in removing the following:

    a). The “search” text.
    b). The complete functionality of the search box (ie. the box now seems to be part of the header background).

    I just can’t seem to get rid of the white rectangular box. I have already tried to “trial and error” many different parts of the code, but can’t seem to turn the color into the same color as the rest of the header. It is really a problem of turning a small white box into the same background color.

    Does anyone have any ideas how to remove this search box? If you would like me to provide some code, please let me know which area supply the code.

    Thanks,

    Gary

Viewing 15 replies - 1 through 15 (of 18 total)
  • Moderator t-p

    (@t-p)

    in themes templates, look code some thing like this:

    <?php get_search_form(); ?>

    strike it out.

    Thread Starter gary1579

    (@gary1579)

    Hi t-p,

    Thanks again for helping me today.

    I have gone through the functions.php (Theme Functions) and the index.php (Main Index Template), but haven’t been able to find this code.

    I am using the wp-portal theme 2.1 if that helps at all.

    Thanks,

    Gary

    Moderator t-p

    (@t-p)

    I am familiar with portal theme.

    also check header.php

    Thread Starter gary1579

    (@gary1579)

    I have checked this, and still do not see a code string that resembles the one you provided.

    fyi: this is the code I had previously deleted, which ended the “search” functionality:

    <!– BEGIN header –>
    <div id=”header”>
    <h1>/”><?php bloginfo(‘name’); ?></h1>
    <h3><?php bloginfo(‘description’); ?></h3>
    <form action=”<?php bloginfo(‘url’); ?>/”>
    <input type=”text” name=”s” id=”s” value=”<?php the_search_query(); ?>” onfocus=”focusInput(‘Search’, this)” onblur=”blurInput(‘Search’, this)” />
    <button type=”submit”>Search</button>
    </form>
    </div>
    <!– END header –>

    <input type=”text” name=”s” id=”s” value=”<?php the_search_query(); ?>” onfocus=”focusInput(‘Search’, this)” onblur=”blurInput(‘Search’, this)” />
    <button type=”submit”>Search</button>

    After removing the above, I was left with the white rectangle.

    Any thoughts on this? Thanks again.

    Gary

    remove this

    <form action="<?php bloginfo('url'); ?>/">
    <input type="text" name="s" id="s" value="<?php the_search_query(); ?>" onfocus="focusInput('Search', this)" onblur="blurInput('Search', this)" />
    <button type="submit">Search</button>
    </form>
    </div>
    <!-- END header -->
    
    <input type="text" name="s" id="s" value="<?php the_search_query(); ?>" onfocus="focusInput('Search', this)" onblur="blurInput('Search', this)" />
    <button type="submit">Search</button>

    from header.php file

    Thread Starter gary1579

    (@gary1579)

    Hi chinmoy29,

    Attached is the header.php file that I have:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; dir=”ltr” lang=”en-US”>

    <!– BEGIN html head –>
    <head profile=”http://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <title><?php bloginfo(‘name’); ?><?php wp_title(); ?></title>
    <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘stylesheet_url’); ?>” />
    <!–[if lte IE 6]><link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘template_url’); ?>/ie.css” /><![endif]–>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/functions.js”></script>

    <?
    global $options;
    foreach ($options as $value) {
    if (get_settings( $value[‘id’] ) === FALSE) { $$value[‘id’] = $value[‘std’]; } else { $$value[‘id’] = get_settings( $value[‘id’] ); }
    }
    ?>
    <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘template_url’); ?>/colorstyles/<? echo $wppt_color_scheme; ?>.css” />
    <?php wp_head(); ?>
    </head>
    <!– END html head –>

    <body>
    <!– BEGIN wrapper –>
    <div class=”wrapper”>

    <!– BEGIN header –>
    <div id=”header”>
    <h1>/”><?php bloginfo(‘name’); ?></h1>
    <h3><?php bloginfo(‘description’); ?></h3>
    <form action=”<?php bloginfo(‘url’); ?>/”>

    </form>
    </div>
    <!– END header –>

    <!– BEGIN content –>
    <div id=”content”>
    <!– BEGIN navigation –>
    <ul id=”navigation”>

    • /”>Home
    • <?php dp_list_pages(); ?>

      <!– END navigation –>

      I do not believe the script you are suggesting is here. I checked other php templates as well, and could not find a similar script.

      Not sure if there is an easy solution here. I have been trying to find some code that has the search engine box layered into the header, but can’t seem to identify it.

      If you have any more thoughts, please let me know. Otherwise, I appreciate your help anyway.

      Thanks,

      Gary

    check your theme’s settings or any theme’s files or check your widgets

    the white box is part of the header graphic:

    /wp-portaltheme/colorstyles/header-COLOR.jpg

    @gary1579
    keep in mind – posting a link to your site will usually make helping easier and quicker 😉

    Thread Starter gary1579

    (@gary1579)

    Sorry, you’re right alchymth.

    Here is a link to my site:

    http://www.doublestrollerjogging.com

    Any thoughts about line of code I should remove or edit, based on header.php I attached in a previous post?

    I have also gone through the theme’s settings and widgets, but did not find anything helpful there.

    Thank you all for lending a hand to a relatively newcomer to the wordpress world.

    Gary

    Moderator t-p

    (@t-p)

    looks like the white box is part of the header graphic.

    Thread Starter gary1579

    (@gary1579)

    In your opinion, do you believe there is an easy solution for removing this, or shall I move on to another theme?

    I have tried a multitude of different variations of trying to remove different scripts in the header, but with no luck.

    Thanks,

    Gary

    Moderator t-p

    (@t-p)

    In your opinion, do you believe there is an easy solution for removing this,

    I don’t know.

    you may try changing the header image.

    or shall I move on to another theme?

    That’s an option. There are so many WP themes.

    Thread Starter gary1579

    (@gary1579)

    Thanks t-p.

    I will search for another theme, but will continue to work on this one. I will keep this discussion up for a couple of more days in case anyone has any ideas, and will post solution if I have one.

    Thanks,

    Gary

    Moderator t-p

    (@t-p)

    have you tried changing the header image?

    Thread Starter gary1579

    (@gary1579)

    No, unfortunately, I don’t know how to do that.

    All I can figure out how to do is move it to take it out, which actually removes the entire header.

    I though the white box was superimposed on the header, but I’m not sure if this is the case, as I can’t find a script for the white box.

Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘Remove SEARCH BOX’ is closed to new replies.