Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Mystery Search Button Text

    Hi,

    On this site we have the header search feature in operation, just below the logo on the right. We want to change the button text from "Go" to "Search". Easy, right? Just go to the proper defines file and change it.

    But the proper defines file already says "Search". And so does any conceivable alternate define that I can find. So it has to be hard-coded in somewhere -- but where? I've tried the search in admin, looking for define('HEADER_SEARCH_BUTTON','Go'); and got nothing. Any idea where it's coming from?

    ZC 1.3.9h
    SexyPink template (Don't worry, it's not an adult site.)

    From includes/languages/English/header.php
    define('HEADER_SEARCH_BUTTON','Search');
    define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search terms here');

    From includes/languages/English/SexyPink/header.php
    define('HEADER_SEARCH_BUTTON','Search');
    define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search terms here');

    Incidentally, that last location, the header.php file in the override folder, is actually working. If I leave the 'Tagline' define in, Tagline appears on the page overlapping the logo. When I set it back to just '', it disappears from the page. So the file is being recognized and used by ZC. But obviously the search defines are not being used. That's the real puzzle.

    Rob

  2. #2
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Mystery Search Button Text

    Have you checked the
    templates/custom/sideboxes/tpl_search_header ?

    SexyPink??
    It's kinda brown!! ;)

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Mystery Search Button Text

    Try a search in the Tools ... Developers Tool Kit ... on the word:
    'go'

    Or search on:
    Go

    and select case sensative ... and see what comes up ...
    Last edited by Ajeh; 17 Mar 2012 at 04:41 PM.
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Mystery Search Button Text

    I tried looking in templates/SexyPink/sideboxes/tpl_search_header but there isn't an override of that file there. So it's using the one in template_default, and the text is not defined there, nor is it hard-coded into that file.

    Searched in DTK for "Go" and found lots of odds and ends, but no "Go" in anything governing the search box. Interestingly but irrelevantly it found "Go away gooberbrain :-P" in admin/includes/languages/english/password_forgotten.php!

    Rob

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Mystery Search Button Text

    Go to the Developers Tool Kit ... and in the bottom input box enter:
    Go

    click the case sensative and select the Catalog ... then click Search ... what comes up?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Mystery Search Button Text

    Try searching for one of the following
    cssButton
    button_search
    value="go"

  7. #7
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Mystery Search Button Text

    Quote Originally Posted by Ajeh View Post
    Go to the Developers Tool Kit ... and in the bottom input box enter:
    Go
    click the case sensative and select the Catalog ... then click Search ... what comes up?
    Searched in DTK for "Go" and found lots of odds and ends, but no "Go" in anything governing the search box. Interestingly but irrelevantly it found "Go away gooberbrain :-P" in admin/includes/languages/english/password_forgotten.php!

    Rob

    PS
    Whenever I say I searched for "Go" it means I searched for Go without the quotes
    Last edited by rstevenson; 17 Mar 2012 at 08:49 PM.

  8. #8
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Mystery Search Button Text

    Quote Originally Posted by keneso View Post
    Try searching for one of the following
    cssButton
    button_search
    value="go"
    cssButton: found some stuff in includes/functions/html_output.php but no "Go"

    button_search: found a define in includes/languages/english/button_names.php but it said "Search"

    value="go": nothing found

    Rob

  9. #9
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Mystery Search Button Text

    It's in includes/languages/english/YOUR_TEMPLATE/header.php.

  10. #10
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Mystery Search Button Text

    Quote Originally Posted by stevesh View Post
    It's in includes/languages/english/YOUR_TEMPLATE/header.php.
    In a perfect world, yes, but

    But as I said up at the beginning of the thread, what's in there is...

    define('HEADER_SEARCH_BUTTON','Search');
    define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search terms here');

    And as you can see, neither of those defines are having an effect on the site.

    Rob

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. CSS search button text
    By hendrickx in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Sep 2011, 07:55 PM
  2. top search text box and search button not vertically aligned
    By HeyIts007 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Oct 2010, 05:29 AM
  3. Search Button Text Off Center
    By Advantage Online in forum General Questions
    Replies: 4
    Last Post: 28 Apr 2010, 10:41 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