You are here:  » Space between banner and searchform is very big


Space between banner and searchform is very big

Submitted by hansi on Tue, 2006-11-07 04:26 in

Hello,

in header.php I include my banner but they are a big space between my banner and the searchform.
I have not use any or tags.
How can I make the space between banner and searchform smaller?

Thanks for your help.

Regards,
hani

Submitted by support on Tue, 2006-11-07 08:25

Hi Hani,

The space comes from line 8 in index.php in the distribution:

print "<div style='height:120px;'>&nbsp;</div>";

If you are including your own header code and don't want this space you can simply delete this line altogether, or lower the value of the height style in the style attribute.

Cheers!
David.

Submitted by hansi on Tue, 2006-11-07 16:19

Hello David,

ok it helps for the main page. But in /merchant/ /category/ and /brand/ I have an another space between banner and the searchform.
How can I also change this space?
Thanks!

Submitted by support on Tue, 2006-11-07 16:25

Hi Hani,

It could be the menu taking up the space. All of these pages are actually served by search.php - and if you have a look at the bottom of that script you will see:

  require("html/header.php");
  require("html/menu.php");
  require("html/searchform.php");

menu.php just displays the "Home" link on all pages other than the index page, and it may be that you do not require this page with your own custom header - so you can just remove the line to require html/menu.php.

Cheers,
David.