Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'search box' textfield in column_left.php


Rob Petterson

Recommended Posts

Posted

I want to change the colour inside the textfield from its default colour of white to another colour. Does anyone know which file the coding for the textfield resides?

Sometimes I think I understand everything, then I regain consciousness

Posted

All colors are defined in:

/catalog/stylesheet.css

and the variabel you might be looking for is infobox_contents.

 

HTH

Best Regards

olby

Posted

Thanks Ole,

I'll try it out tonight when I get home.

 

Rob

Sometimes I think I understand everything, then I regain consciousness

Posted

OK, that dosn't work. I need edit the TEXTFIELD colour not the infobox.

Sometimes I think I understand everything, then I regain consciousness

Posted

In the stylesheet.css its the infoboxHeading you need to work on :lol:

 

TD.infoBoxHeading {

 font-family: Verdana, Arial, sans-serif;

 font-size: 10px;

 font-weight: bold;

 background: #bbc3d3;

 color: #ffffff;

}

 

Altering the color:#ffffff here though changes the color of all the infoboxes.

Try hard coding the colour in the search.php file instead.

Posted

Hi again.

 

I think I misunderstod you, but if you want to change the color in the textfield, where visitors enters their searchkey, then this is what you do:

 

Make a copy of catalog/includes/boxes/search.php, just to be on the safe side :).

Open catalog/includes/boxes/search.php and find this line (it's long):

'text'  => $hide . '<input type="text" name="keywords" size="10" maxlength="30" value="' . htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"])) . '" style="width: ' . (BOX_WIDTH-30) . 'px"> ' . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'

and change it to this:

'text'  => $hide . '<input type="text" name="keywords" size="10" maxlength="30" value="' . htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"])) . '" style="{background-color: #000000} width: ' . (BOX_WIDTH-30) . 'px"> ' . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'

Notice that the styletag has been added this css-tag: {background-color: #000000}.

#000000 gives black, but you can change that to whatever you like / need.

HTH

Best Regards

olby

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...