You are here:  » Emptying Search Box


Emptying Search Box

Submitted by anthem on Fri, 2006-09-29 08:55 in

Hi,

Please could someone tell me how to remove content from auto-appearing in the Search box?

I have made some amendments to the Title part of my site and now I get "Resource id #22" in the Search box.

I'm happy to just leave it completely empty.

Thanks in advance.

Submitted by support on Fri, 2006-09-29 09:09

Hi,

In html/searchform.php, the input box is created using:

<input type='text' name='q' size='35' value='<?php print (isset($q)?$q:""); ?>' />

To leave the search box empty, change it to:

<input type='text' name='q' size='35' value='' />

That should do the trick!
Cheers,
David.

Submitted by anthem on Fri, 2006-09-29 09:22

Brilliant! Thanks a lot!