Rob Petterson Posted July 24, 2003 Posted July 24, 2003 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
♥olby Posted July 24, 2003 Posted July 24, 2003 All colors are defined in: /catalog/stylesheet.css and the variabel you might be looking for is infobox_contents. HTH Best Regards olby
Rob Petterson Posted July 24, 2003 Author Posted July 24, 2003 Thanks Ole, I'll try it out tonight when I get home. Rob Sometimes I think I understand everything, then I regain consciousness
Rob Petterson Posted July 24, 2003 Author Posted July 24, 2003 OK, that dosn't work. I need edit the TEXTFIELD colour not the infobox. Sometimes I think I understand everything, then I regain consciousness
Guest Posted July 24, 2003 Posted July 24, 2003 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.
♥olby Posted July 24, 2003 Posted July 24, 2003 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
Rob Petterson Posted July 25, 2003 Author Posted July 25, 2003 Thanks Olby, This is exactly what I'm after. Sometimes I think I understand everything, then I regain consciousness
Guest Posted July 25, 2003 Posted July 25, 2003 If you require anymore help with editing the stylesheet.css it can be found here: http://wiki.oscommerce.com/helpHowtoStylesheetCatalog -Matt
Recommended Posts
Archived
This topic is now archived and is closed to further replies.