Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    Default 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
    ZC 1.3.8a on Linux with lots o' mods

  2. #2
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default 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.

  3. #3
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    Default 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 . '\')"'); ?>&nbsp;&nbsp;&nbsp;<?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.
    ZC 1.3.8a on Linux with lots o' mods

  4. #4

    Default Re: EZ Question - Form Field Sizing

    Did you find your answer how to make the search field wider?

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,879
    Plugin Contributions
    96

    Default Re: EZ Question - Form Field Sizing

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

 

 

Similar Threads

  1. Replies: 6
    Last Post: 24 Nov 2022, 08:51 PM
  2. v151 question about Inventory control on sizing...
    By Innerchaos in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Jan 2013, 01:12 AM
  3. image sizing question
    By rabbitnutrition in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Jan 2012, 12:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg