Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Posts
    243
    Plugin Contributions
    5

    Default Changing the Search button image

    Hi, hope someone can help. I have figured out how to change the header search button from CSS to use the button_search.gif

    PHP Code:
    {
        
    $content .= zen_draw_input_field('keyword''''size="6" class="search-header-box" maxlength="30" 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 '\';"') .zen_image_submit(BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON,'class="input" style="position:relative;left: -10px; top: 5px"');
      } 
    But what I cannot figure out is how to point this to my own image called button_search_header.gif

    As I would like to use two different images for the header search button and the search button used on the Advanced Search Page.

    Hope someone can help me.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Changing the Search button image

    If you're wanting to hard-code a filename instead of using the system-wide defined value, change BUTTON_IMAGE_SEARCH to 'button_search_header.gif'
    or vice-versa
    .
    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. How can I make the Header Search button be a CSS button?
    By makehveli in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Aug 2011, 03:01 AM
  2. Center the search field and button infront of image
    By Muzz in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Apr 2010, 05:52 AM
  3. 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
  4. Removing the 'Advanced Search' and changing basic search to title only
    By val-ent in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Aug 2008, 11:39 PM
  5. Changing Search Button to an image
    By MCanes in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Oct 2007, 04:44 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