Joomla - Increase search box limit

By default Joomla allows to enter only 20 characters in the search box. This can be changed by a simple core hack. Be aware that any changes to Joomla core files can be overwritten by a Joomla update.

Open file: /public_html/_sites_/mysysadmintips_2/language/en-GB/en-GB.localise.php

en-GB part may be different for you (depending on Joomla language)

On line 63 you will find following code:

 
public static function getUpperLimitSearchWord() {
  return 20;
}
 

Change return 20 on line 64 to your new limit. i.e. return 40;

Joomla 2.5


Newsletter

Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait