If this is your first visit, check our documentation. To post, register or login.
Forums / Basic Configuration / Advanced Search Template- Widening the Text Entry Box

Advanced Search Template- Widening the Text Entry Box

Locked

Started by donn on 7 Feb 2009, 10:17 PM · 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,512
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;}

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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: