Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2011
    Location
    Arizona
    Posts
    17
    Plugin Contributions
    0

    Default Search box in header disappeared when upgraded from v1.3.9h to v1.5.5a

    When I upgraded my website from v1.3.9h to v1.5.5a, the "Enter search keywords here" box and "Search" button disappeared from the right-hand side of the header. I know I edited the width of the keyword box years ago, but I can't remember which file I used.

    The search box and button do not appear on my upgraded website. How do I add them? The old version is still live; the upgraded version is in test mode. Thanks.

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Search box in header disappeared when upgraded from v1.3.9h to v1.5.5a

    In YourAdmin, Tools, Layout Boxes Controller and see if it's actually turned on.

  3. #3
    Join Date
    Jul 2011
    Location
    Arizona
    Posts
    17
    Plugin Contributions
    0

    Default Re: Search box in header disappeared when upgraded from v1.3.9h to v1.5.5a

    Hmm, well, don't I feel foolish. I hadn't turned it on because I thought it would create a right sidebox when I only want them on the left. Thanks, dbltoe.

    Can you tell me where to edit the width of the Search Term box? Thanks.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Search box in header disappeared when upgraded from v1.3.9h to v1.5.5a

    The forum search box is not always the greatest. Try googling "search box width zen cart" without the quotes.
    Nothing better than learning to fish.

  5. #5
    Join Date
    Jul 2011
    Location
    Arizona
    Posts
    17
    Plugin Contributions
    0

    Default Re: Search box in header disappeared when upgraded from v1.3.9h to v1.5.5a

    Thanks. I figured it out once before, so hopefully I can again.

  6. #6
    Join Date
    Jul 2011
    Location
    Arizona
    Posts
    17
    Plugin Contributions
    0

    Default Re: Search box in header disappeared when upgraded from v1.3.9h to v1.5.5a

    I figured it out, so I'll post the info in case it can help someone else.

    \includes\templates\template_default\sideboxes\tpl_search_header

    Near the bottom,

    $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30"
    style="width: 180px" placeholder="' . 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: 55px" />';

    The two bolded styles are the ones I changed.

  7. #7
    Join Date
    May 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Search box in header disappeared when upgraded from v1.3.9h to v1.5.5a

    Quote Originally Posted by HighCastleCrafts View Post
    I figured it out, so I'll post the info in case it can help someone else.

    \includes\templates\template_default\sideboxes\tpl_search_header
    I suspect you lost your original template modification when you upgraded for the same reason you will lose this one when you upgrade again in the future . . . because your changes to \includes\templates\template_default\sideboxes\tpl_search_header is overwritten when you upgrade. To preserve your customization you can create a custom template and use the Template Override System. So, instead of changing the template_default file you would copy it \includes\templates\template_default\sideboxes\tpl_search_header into \includes\templates\highcastlecrafts_custom_template\sideboxes\tpl_search_header and make your changes there.

    Understanding the Override System
    https://www.zen-cart.com/content.php...verride-system

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Search box in header disappeared when upgraded from v1.3.9h to v1.5.5a

    BTW, it is NOT recommended to use underscore in a website filename. It can actually lower ranking. Use dashes/hyphens instead. http://tinyurl.com/gnsc9dm

 

 

Similar Threads

  1. v154 Remove Search Box From the EZ PAGES HEADER
    By MillenniumJim in forum Customization from the Admin
    Replies: 3
    Last Post: 10 Mar 2015, 07:18 PM
  2. v151 Login and search disappeared from header
    By yukionna in forum General Questions
    Replies: 3
    Last Post: 1 Aug 2014, 01:19 PM
  3. v150 Header Search Box error when using 2 words
    By Duckarina in forum General Questions
    Replies: 4
    Last Post: 10 Apr 2012, 03:48 AM
  4. Upgraded from 1.2.6 to 1.3.7 images disappeared
    By freya in forum Upgrading from 1.3.x to 1.3.9
    Replies: 11
    Last Post: 23 Jan 2007, 07:42 AM

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