Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to enlarge search box mainnav?

How to enlarge search box mainnav?

Views: 2,546

Results 1 to 9 of 9
28 Jan 2011, 8:45 PM
#1
goldenis avatar

goldenis

Zen Follower

Join Date:
Nov 2010
Posts:
115
Plugin Contributions:
0

How to enlarge search box mainnav?

I enlarged the text, now how to enlarge the box.

I want to enlarge the search box so that the enlarged text does not get cut off.

Where is this defined?

Thanks!

29 Jan 2011, 3:03 AM
#2
goldenis avatar

goldenis

Zen Follower

Join Date:
Nov 2010
Posts:
115
Plugin Contributions:
0

Re: How to enlarge search box mainnav?

It appears the Search "button" may be an image. Searched all the image folders and did not find anything defined as search button. using 1.3.9h

Still looking.

29 Jan 2011, 11:13 AM
#3
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: How to enlarge search box mainnav?

Make a copy of your tpl_search_header.php file in the sideboxes of the default_templates

Paste it in the includes/templates/YOUR_TEMPLATE/sideboxes folder

Change line 19 at the beginning of the line

$content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" value="'

with

$content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" id="searchTop" value="'

Add to your stylesheet

input#searchTop {
width: 120px;
height: 2em;
}

Height, and width according to your needs

29 Jan 2011, 6:23 PM
#4
goldenis avatar

goldenis

Zen Follower

Join Date:
Nov 2010
Posts:
115
Plugin Contributions:
0

Re: How to enlarge search box mainnav?

That worked great for the keyword search box. Thank you!:smile:

I am still confused on the search "button"

I am close but the references to "image" in the php search make me think there should be an image of the button somewhere.

Not true?

if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes')

(BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);

29 Jan 2011, 6:34 PM
#7
goldenis avatar

goldenis

Zen Follower

Join Date:
Nov 2010
Posts:
115
Plugin Contributions:
0

Re: How to enlarge search box mainnav?

version 1.3.9h

http: //www.naicsfurniture.com

Thanks!

12 Jun 2011, 6:40 AM
#9
rfree190 avatar

rfree190

Zen Follower

Join Date:
Sep 2007
Posts:
176
Plugin Contributions:
0

Re: How to enlarge search box mainnav?

Doesn't look like you are using CSS Buttons. Try looking at :
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_search_header.php

For mine, it was on line 19. Look for style="width: 75px" and change as needed.

Hope this is what you are looking for...