Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Location
    The Land of Enchantment
    Posts
    49
    Plugin Contributions
    0

    Default Search box in header : Q

    I've got my search box in the header Navigation ...... just wish to know how I can make the default text I have in the actual box = "Search", be bale to disappear when a visitor to my site simply clicks in that search box.

    See http://www.prgnanterath.com/store, to see what I mean ... currently one has to highlight the "Search" text and click delete to get rid of it - inorder to type in one's search query.

    Here's the relevant php code from line#51 in my templates/custom/sideboxes/tpl_search_header.php



    $content .= '<div align="right">' . zen_draw_input_field('keyword', '&nbsp;Search', 'size="6" maxlength="100" style="width: 80px"') . '&nbsp;<span style="vertical-align:bottom">'. zen_image_submit(BUTTON_IMAGE_SEARCH, BUTTON_SEARCH_ALT).'</span>&nbsp;<a href=" '.zen_href_link(BOX_SEARCH_ADVANCED_SEARCH).' "</a>';


    (I don't know anything about php) I'm hoping there just some simple little code snippet that needs to be added here!

    I'm sorry I can't seem to be able to find the way, in this new forum, to put my code in one of those neat little boxes, for you. (maybe you could point out what I'm not seeing, for this?) That's be great, too!

    Thank-you in advance for your help!

    Sincerely,
    B

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

    Default Re: Search box in header : Q

    The code for this is all built-in to v1.3.x ;)

    You could either upgrade, or carefully hunt down the code changes and hack them into your current site.
    .

    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.

 

 

Similar Threads

  1. Header Search Box Error
    By MVIP in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Dec 2011, 07:41 PM
  2. Header & Search Box
    By iccreativity in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 13 Jun 2008, 07:05 PM
  3. Search Box in H3 Left Box Header
    By flintcog in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jun 2007, 09:28 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