Double Search font in Search bar.


Author Message
Joe Lockhart

Posted: 12/11/2012
Quote message 

No matter what I do the word search will appear under the search box. I'm using Artisteer 4 Joomla 2.5.8

This is the site

http://www.srhia.ca/


 
goliath

Posted: 12/19/2012
Quote message 

The same here.
I use the standard search module installed with Joomla 2.5.8. Everything went well until yesterday. After updating to version 4.0 and uploading my updated template suddenly my search form contains two buttons: a button named 'search' (which I named and placed so) and an extra button named 'search query'. The two buttons seem to have the same function. Is there a possibility to remove this 'query' button?
 
Joe Lockhart

Posted: 12/22/2012
Quote message 

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

Posted: 12/23/2012
Quote message 

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

Posted: 12/29/2012
Quote message 

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
 
AdamR

Posted: 12/30/2012
Quote message 

I'm with Alan. I've figured out the Search in buttons and text,
but the "Submit Query" in IE is an unsolved mystery.
 
Alan

Posted: 12/30/2012
Quote message 

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

Posted: 12/30/2012
Quote message 

Just searched all joomla v2.5.8 files - no 'Submit Query' anywhere.

I also extracted the Artisteer zip template file and it's not in their either.

Is it a default built in to IE itself? If so, how can it be bypassed?
 
Alan

Posted: 12/31/2012
Quote message 

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?
 
Alan

Posted: 12/31/2012
Quote message 

I've posted about this on the joomla forum since it seems to be something that joomla could fix and nothing to do with Artisteer: http://forum.joomla.org/viewtopic.php?f=615&t=783652

Go there for any further updates.
 
Joe Lockhart

Posted: 12/31/2012
Quote message 

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

Posted: 12/31/2012
Quote message 

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

Posted: 1/1/2013
Quote message 

That seemed to do the trick, Alan!
Very nice investigating. I never would've tracked that down.
 
Blauwe

Posted: 1/28/2013
Quote message 

Thanks, double search button gone with help of Alan
 
Hitesh Chauhan

Posted: 11/6/2017
Quote message 

Quote goliath:

@goliath

Nice answer!!

But i am having a problem. can you please tell me which <b> <a href ="https://www.mytrendin.com/best-free-joomla-templates/" title="Joomla template">Best joomla template</a></b> should i use for my personal blog....

https://www.mytrendin.com/best-free-joomla-templates/