This is a bit of a hack, but it seems to work...
See my example at http://www.buysouthafrican.co.uk/shop
If you are using a CUSTOM template, then the files that I list in this post must be edited and saved into your custom folders.
I have a TEST SHOP which uses the CLASSIC template, so this will be my custom template in my examples below. If you have a different template, then in the directory paths below, substitute YOUR template wherever you see \classic\.
1. Create a folder called sideboxes, in your custom template: eg:-
( includes\templates\classic\sideboxes\ )
2. Using FTP, navigate to:-
includes\templates\template_default\tpl_search_header.php
and ftp a copy to your hard drive.
3. Open the hard-drive copy of tpl_search_header.php for editing.
Original code starts as:-
PHP Code:
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_search_header.php 4142 2006-08-15 04:32:54Z drbyte $
*/
$content = "";
Edit it as follows:-
PHP Code:
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_search_header.php 4142 2006-08-15 04:32:54Z drbyte $
*/
?>
<div id="searchHeaderText"><?php echo SEARCH_HEADER_TEXT; ?></div>
<?php
$content = "";
So, you are INSERTING the following above the $content line
PHP Code:
?>
<div id="searchHeaderText"><?php echo SEARCH_HEADER_TEXT; ?></div>
<?php
Save the file on your hard drive, then FTP it to:-
includes\templates\classic\sideboxes\
(ie: the new sideboxes folder you created in your CUSTOM template).
------------------------------------------------
NEXT STEP
------------------------------------------------
4. FTP a copy of your english.php file to your hard drive. (If you already have english.php in your custom template, then that is the one to edit. If not, FTP this one:-
\includes\languages\english.php)
5. Open it for editing and find (around line 74)the lines:-
PHP Code:
//text for sidebox heading links
define('BOX_HEADING_LINKS', ' [more]');
// categories box text in sideboxes/categories.php
define('BOX_HEADING_CATEGORIES', 'Categories');
6. Insert the following line underneath, using similar spacing:-
PHP Code:
//text for search header label text
define('SEARCH_HEADER_TEXT', 'Search for:');
7. Save the file.
8. FTP it into:
\includes\languages\classic\
---------------------------------------------------------------
NEXT STEP
---------------------------------------------------------------
9. Open your stylesheet.css file (again, you should edit one in your CUSTOM css folder - \includes\templates\classic\css\stylesheet.css ).
Insert the following lines at the bottom of the stylesheet:-
PHP Code:
#searchHeaderText {
padding-top: 0.5em;
float: left;
}
10. Save the file, (and if you edited a copy on your hard drive, send it to your custom css folder.)
You can adjust " padding-top: 0.5em; " to suit your needs... 0.6em, or 0.4em ...