How to Change Default Keyword (ie. PHP Programmer)
From OSClass
On the default modern theme, there's a top search bar with a default text "ie. PHP Programmer"
To change it we need to modify the file oc-content/themes/modern/inc.search.php:
- Around line 24 we will find:
var sQuery = '<?php _e("ie. PHP Programmer", 'modern') ; ?>' ;
- Around line 61 we will find:
<input type="text" name="sPattern" id="query" value="<?php echo ( osc_search_pattern() != '' ) ? osc_search_pattern() : __("ie. PHP Programmer", 'modern') ; ?>" />
Just delete the ie. PHP Programmer part and put what you want or just leave the quotes. For example, if we want to change it for "rural house in Canada" it should be
var sQuery = '<?php _e("rural house in Canada", 'modern') ; ?>' ; <input type="text" name="sPattern" id="query" value="<?php echo ( osc_search_pattern() != '' ) ? osc_search_pattern() : __("rural house in Canada", 'modern') ; ?>" />
