Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2011
    Posts
    46
    Plugin Contributions
    0

    Default Search box & Search botton width control

    Should read "search button" LOL

    v 1.3.9h
    New install
    http://www.scplaceonline.com/zen/

    I have searched FAQ/Forum to find the answer but I'm stuck. I just need to know which file sets the width for the search box and button. I can "view source" and see that they are set and that the width needs to be increased, but for all my code reading including my template (Template241) CSS and language directories and in the overrides I have set, I can't find it.

    I'm sure the answer will leave me with a "Duh, I forgot to look there" moment, but please put me out of my misery. [SCR][/SCR]
    Last edited by Craig Hairston; 12 Dec 2011 at 10:55 PM. Reason: typo

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

    Default Re: Search box & Search botton width control

    includes/templates/your_template/sideboxes/tpl_search_header.php

    Look for 120px. It will be in two places.

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

    Default Re: Search box & Search botton width control

    PS: That's assuming Template Monster didn't screw it up.

  4. #4
    Join Date
    Aug 2011
    Posts
    46
    Plugin Contributions
    0

    Default Re: Search box & Search botton width control

    Thanks,

    I'm pretty sure it's not one of those Template Monster monstrosities.
    http://www.zen-cart.com/index.php?ma...roducts_id=979

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

    Default Re: Search box & Search botton width control

    Nah, it isn't. The number in the name threw me off. That's how they do theirs.

  6. #6
    Join Date
    Aug 2011
    Posts
    46
    Plugin Contributions
    0

    Default Re: Search box & Search botton width control

    I was wondering why I couldn't find it. The template actually did not have a tpl_search_header.php in includes/mytemplate/sideboxes

    but your advice was correct. It was the file being called.

    I went and pulled the one from template_default which is part of the std Zen installation, widened the boxes, installed it in
    includes/mytemplate/sideboxes/tpl_search_header.php

    and it worked fine.

    Thanks again for a quick and accurate reply that not only helped me fix the issue but added to my understanding of how/where Zen Cart is retreving files and how to add one more to the override system in prep for the big leap to 1.5

  7. #7
    Join Date
    Aug 2011
    Posts
    46
    Plugin Contributions
    0

    Default Re: Search box & Search botton width control

    Correction:

    My custom template: includes/templates/mytemplate/sideboxes/

    did not have a custom version of tpl_search_header.php

    I pulled the version from

    includes/templates/template_default/sideboxes/

    which is part of the standard Zencart installation.
    I modified it and loaded it as

    includes/templates/mytemplate/sideboxes/tpl_search_header.php

    Just in case anyone needs this same override and the file isn't part of your custom template.

    "Never let a newbie type when they're excited that the mod works"

 

 

Similar Threads

  1. need to add width to search box
    By mek113 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Oct 2011, 11:08 PM
  2. Search text input box width (in side box)
    By joshuaholland in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Apr 2010, 01:11 PM
  3. Search Botton is too Small in Header
    By gregjs in forum General Questions
    Replies: 0
    Last Post: 13 Jun 2009, 12:58 AM
  4. Changing width of top search box
    By timotheos in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Feb 2007, 09:27 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR