Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2008
    Location
    Athens
    Posts
    84
    Plugin Contributions
    0

    Default Increase search button width

    Hello Zenners!

    I have a little problem and I want your help.
    I tried to change the Search button value in the appropiate greek word from "/public_html/my_site/includes/languages/greek/classic/header.php".

    The greek search word "Αναζήτηση" happens to have more letters than english word Search and the additional letter not shown.

    I tried to do this http://www.zen-cart.com/forum/showthread.php?t=76482 , but with no success.

    An ideas?

    Thank you very much!

    I attach an image, the problem is in red area.

  2. #2
    Join Date
    Feb 2004
    Location
    Simcoe, Ontario, Canada
    Posts
    2,479
    Plugin Contributions
    1

    Default Re: Increase search button width

    It is not the width of the button but the size of the table cell that it is in. The search button is only a picture.
    Windows, BSD, Linux, Cisco, Hardware & IT Security Tech
    AEIIA - Zen Cart Certified & PCI Compliant Hosting

  3. #3
    Join Date
    Apr 2008
    Location
    Athens
    Posts
    84
    Plugin Contributions
    0

    Default Re: Increase search button width

    Thanks Qdixon for your reply!

    And what file must alter for change the size of table cell?

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Increase search button width

    Find this file:-

    includes/templates/template_default/sideboxes/tpl_search_header.php

    Line 19 (or thereabouts) says:-

    PHP Code:
        $content .= zen_draw_input_field('keyword''''size="6" maxlength="30" style="width: 100px" value="' HEADER_SEARCH_DEFAULT_TEXT '" onfocus="if (this.value == \'' HEADER_SEARCH_DEFAULT_TEXT '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' HEADER_SEARCH_DEFAULT_TEXT '\';"') . '&nbsp;<input type="submit" value="' HEADER_SEARCH_BUTTON '" style="width: 45px" />'
    At the end, you'll see " 45px ".

    Try increasing this to 50px (or more if necessary...)
    Last edited by fairestcape; 5 Aug 2008 at 06:19 PM.

  5. #5
    Join Date
    Apr 2008
    Location
    Athens
    Posts
    84
    Plugin Contributions
    0

    Default Re: Increase search button width

    Thank you very much fairestcape!

    It worked!

    I also changed tpl_search.php for the other Search button.

 

 

Similar Threads

  1. v150 Alter search button (css) width
    By mi16chap in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 6 Jun 2012, 03:18 PM
  2. Replies: 7
    Last Post: 5 May 2011, 02:13 AM
  3. Search Button Width
    By MortalWombat in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Dec 2010, 04:42 AM
  4. how can I expand the width of the search field amd search button?
    By watzursn in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Sep 2009, 09:22 PM
  5. Search button width
    By pulkit in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 15 Sep 2009, 05:54 PM

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