Zen Cart Logo
Forums / Basic Configuration / Advanced Search Template- Widening the Text Entry Box

Advanced Search Template- Widening the Text Entry Box

Locked

Views: 1,851

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
7 Feb 2009, 10:17 PM
#1
donn avatar

donn

Zen Follower

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

Advanced Search Template- Widening the Text Entry Box

Hi Zen Cart enthusiasts....

I was wondering how to change the width of the text input field on the Advanced Search page, but **only **the top text input box used for keyword entry.

I found the file that outputs the screen data for this:
tpl_advanced_search_default.php

on line 28:

<?php echo zen_draw_input_field('keyword', $sData['keyword'], 'onfocus="RemoveFormatString(this, \'' . KEYWORD_FORMAT_STRING . '\')"'); ?>

I KNOW this is the statement that outputs the text entry box, but that's all.

Again, I only need this one text box to be wider, not all.

Thank you.....!

7 Feb 2009, 10:56 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Advanced Search Template- Widening the Text Entry Box

The fastest way to do it without changing any PHP would be to add this to your stylesheet:```
input[name='keyword'] {width: 250px;}

7 Feb 2009, 11:48 PM
#3
donn avatar

donn

Zen Follower

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

Re: Advanced Search Template- Widening the Text Entry Box

DrByte:

The fastest way to do it without changing any PHP would be to add this to your stylesheet:```
input[name='keyword'] {width: 250px;}


Thank you Dr. Byte!!

I didn't realize that a CSS control would be the answer.

 I understand now that even in PHP, screen output is probably going to be formatted with CSS, and not anything in the PHP file itself.

Again, thank you....    :smile: