Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

  3. #3
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default Re: Advanced Search Template- Widening the Text Entry Box

    Quote Originally Posted by DrByte View Post
    The fastest way to do it without changing any PHP would be to add this to your stylesheet:
    Code:
    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....

 

 

Similar Threads

  1. Replies: 5
    Last Post: 20 Apr 2010, 12:54 PM
  2. Maintaining the user's search query in the advanced search box?
    By arniesbarmyarmy in forum General Questions
    Replies: 0
    Last Post: 26 Feb 2010, 01:27 PM
  3. widening the center box
    By alyar in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Jun 2009, 07:47 PM
  4. Where to change to text inside the advanced search box?
    By fusionsp in forum General Questions
    Replies: 1
    Last Post: 6 Jul 2008, 03:56 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