Joe Lockhart
|
You should be able to remove the button by turning it off in the module settings but I can't seem to get rid of the double font. It is on all of the pages I've updated using Joomla 2.5.8. and Artisteer 4
|
|
Ian Shere
|
This is a common frustration. Look here for the answer - it's simple!
http://forum.joomla.org/viewtopic.php?f=472&t=493963&hilit=remove+search+word
|
|
Alan
|
Joe
Does your extra text say 'Search' or 'Submit Query' and what browser are you using?
I'm getting the additional text 'Submit Query', but only in Internet Explorer - Chrome and Firefox are both OK. It's partly hidden under the 'Search' button:
I've searched the language files, but I can't see where 'Submit Query' comes from.
Anyone any idea?
Using joomla 2.5.8 and Artisteer 4.0.0.58475
|
|
Alan
|
Adam
I had another quick look through the language files but still couldn't find it - if I get time tomorrow, I'll search all files and let you know.
|
|
Alan
|
This seems to be a widespread problem with IE going back many years and I've now found this being discussed elsewhere in this forum: http://www.artisteer.com/?post_id=202841&p=forum_post&forum_id=18
The problem seems to arise from the form submit:
<input type="submit" value class="art-search-button">
The 'value' field is blank and it looks like IE adds in 'Submit Query' when other browsers do not.
The only solution I can see is to assign a value to value and even a null string seems to work in IE:
<input type="submit" value="" class="art-search-button">
Saving the index.htm page, making this change works for IE, but the page doesn't render in Chrome or FF for some reason. Anyway the proof is to change joomla code to put this null value in for the value parameter. I'm not familiar with joomla code - does anyone know where this is coded?
|
|
Joe Lockhart
|
This is my problem and it is on more than 1 site. I've upgraded all of my Joomla 1.5 sites to 2.5.8
http://holmanfarminggroup.com/site/images/images/search.png
So as you can see there is the word Search behind the search box.
Hmmm.....
|
|
Alan
|
Joe
You can get rid of that by entering a single space in one of the boxes in the search module manager - I forget which one but it could be Box text.
I have resolved the issue with the duplicate text in IE. It seems to be a default in IE and it happens because the <input type="submit" tag has the value parameter without a vlaue, ie in templates/<templatename>/html/mod_search/default.php, line 16 says:
$output .= '<input type="submit" value class="art-search-button"></div>';
Change this to
$output .= '<input type="submit" value="" class="art-search-button"></div>';
and it will render perfectly in IE (and Chrome) without the duplicate text.
Note that it can be a null string - it doesn't need to be anything else.
This is in the template file, so presumably it is an Artisteer issue (or at least something that can be permanently fixed by Artisteer) - can anyone confirm I've understood this correctly?
|
|
AdamR
|
That seemed to do the trick, Alan!
Very nice investigating. I never would've tracked that down.
|
|
Blauwe
|
Thanks, double search button gone with help of Alan
|
|
Hitesh Chauhan
|
Quote goliath:
|
|