Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / header search box size

header search box size

Locked

Views: 4,518

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
6 Sep 2008, 1:09 PM
#1
neo2008 avatar

neo2008

New Zenner

Join Date:
Aug 2008
Posts:
3
Plugin Contributions:
0

header search box size

Can someone tell me how to change the length of the search box in the header of the site?

thanks

7 Sep 2008, 3:07 AM
#2
schmurray avatar

schmurray

New Zenner

Join Date:
Feb 2008
Location:
Melbourne
Posts:
6
Plugin Contributions:
0

Re: header search box size

look for this file:

includes/templates/YOUR_TEMPLATE/sideboxes/tpl_search_header.php

open it and then edit this value:

'size="6" maxlength="40" style="width: 150px" value="'

I had already increased mine to 150px

7 Sep 2008, 4:48 PM
#3
neo2008 avatar

neo2008

New Zenner

Join Date:
Aug 2008
Posts:
3
Plugin Contributions:
0

Re: header search box size

thanks for the reply, I tired this but the box size didnt change

7 Sep 2008, 5:57 PM
#4
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: header search box size

if you post the url to your site we can take a quick look... and make a suggestion on how to fix it.

Steve

5 Nov 2008, 3:03 AM
#5
damiendlskinsolution avatar

damiendlskinsolution

Zen Follower

Join Date:
Sep 2008
Posts:
97
Plugin Contributions:
0

Re: header search box size

As schmurray said : Go to includes/templates/YOUR_TEMPLATE/sideboxes/tpl_search_header.php

There, you have** 2** things to change : (the value in red is what needs to be modified)

To change the size of the box which you type in, you need to look for and change :
'size="6" maxlength="30" style="width: 170px"

This should appear TWICE on your file. You might need to change both.

Then, to change the size of the Search button, you need to look for and change :
HEADER_SEARCH_BUTTON . '" style="width: 70px"

I ain't a Zen Wizard but i hope it would help others.
Cheers.

12 Nov 2008, 2:58 AM
#6
bobthemolder avatar

bobthemolder

Zen Follower

Join Date:
Nov 2008
Posts:
164
Plugin Contributions:
0

Re: header search box size

Just wanted to say I searched for this thread, and it fixed my problem :smile:
Thanks.

3 Mar 2009, 2:05 AM
#7
misticloudz avatar

misticloudz

New Zenner

Join Date:
Oct 2007
Posts:
52
Plugin Contributions:
0

Re: header search box size

sorry to resurrect an old thread, but I'm having the same problem. Everything I've found says to alter the tpl_search_header.php located in my custom template folder, and I've tried this several times to no avail.

I hope to have the site online soon for testing but for now it's just on my local server; is there anyone else who's had a similar issue and found a solution?

EDIT
If you are using the barebones template or the mostlygrey template or anything derived from those: try this link.

http://www.zen-cart.com/forum/showthread.php?t=89012&highlight=change+tpl_search_header+doesn%27t

It solved my problem...

Tiffany Rose
Frozen Rose Design