Forums / Templates, Stylesheets, Page Layout / EZ Question - Form Field Sizing

EZ Question - Form Field Sizing

Results 1 to 5 of 5
17 Nov 2011, 21:49
#1
needainstall avatar

needainstall

New Zenner

Join Date:
Nov 2007
Posts:
34
Plugin Contributions:
0

EZ Question - Form Field Sizing

I'd like to lengthen the size of the search field presented on the advanced search page - the field prefilled with the word 'keywords'. It is really too small to be of much use.

I've located tpl_advanced_search_default.php, but don't see where the field size is specified.

v1.3.8
17 Nov 2011, 23:10
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Posts:
1,700
Plugin Contributions:
2

Re: EZ Question - Form Field Sizing

includes/templates/your_template/sideboxes/tpl_search_header.php

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

There are two places in the file.
18 Nov 2011, 08:58
#3
needainstall avatar

needainstall

New Zenner

Join Date:
Nov 2007
Posts:
34
Plugin Contributions:
0

Re: EZ Question - Form Field Sizing

Thanks for the help. I located the file you specified, made the changes, and nothing. I even deleted the file altogether (local test machine), nothing happens.
It is the only file by that name on my system.

The section creating the box is in my
includes/templates/templates_default/templates/tpl_advanced_search_default.php .

In my file it is line 28 which is:

<div class="centeredContent"><?php echo zen_draw_input_field('keyword', $sData['keyword'], 'onfocus="RemoveFormatString(this, \'' . KEYWORD_FORMAT_STRING . '\')"'); ?>   <?php echo zen_draw_checkbox_field('search_in_description', '1', $sData['search_in_description'], 'id="search-in-description"'); ?><label class="checkboxLabel" for="search-in-description"><?php echo TEXT_SEARCH_IN_DESCRIPTION; ?></label></div>

The zen_draw_input_field is what I need to alter in order to specify the input size, but I can't find and am not sure how to modify the function this relates to.
21 Aug 2012, 21:36
#4
manage_it avatar

manage_it

Inactive

Join Date:
May 2006
Posts:
80
Plugin Contributions:
0

Re: EZ Question - Form Field Sizing

Did you find your answer how to make the search field wider?
22 Aug 2012, 11:29
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

Re: EZ Question - Form Field Sizing

Just add the following to the bottom of /includes/templates/YOUR_TEMPLATE/css/stylesheet.css:
#navMainSearch input[type="text"] {
  width: 120px !important;
}