You are here:  » Custom Search Box Positioning


Custom Search Box Positioning

Submitted by ChrisNBC on Wed, 2013-07-31 10:36 in

Hi David,

Hope all is going well.

I wondered if you could suggest if there is a simple way to place the search box in a header bar similar to the way PriceRunner do?

Thanks in advance.

Regards
Chris

Submitted by support on Wed, 2013-07-31 16:06

Hi Chris,

What a number of users do is to actually copy the code from html/searchform.php and place it within their html/header.php at the position required, and then leave html/searchform.php as an empty file.

If you do this, you would probably also want to remove the majority of the non-Featured Products related code from your index.php - let me know if you're not sure; and then to restore links to the Merchant, Category and Brand indexes (perhaps in your header?) use the following code for each link:

Merchant A-Z:

<?php
 
print "<a href='".($config_useRewrite?"merchant/":"merchants.php")."'>".translate("merchant")."</a>"
?>

Category A-Z:

<?php
 
print "<a href='".($config_useRewrite?"category/":"categories.php")."'>".translate("category")."</a>"
?>

Brand A-Z:

<?php
 
print "<a href='".($config_useRewrite?"brand/":"brands.php")."'>".translate("brand")."</a>"
?>

Cheers,
David.
--
PriceTapestry.com