If you want to customize your search option placeholder text on WordPress using a WordPress Search Form, it is very simple. Have a look at the points below and learn the concept in some minutes! It is more like a DIY situation, where we help people make small changes in their site.

 You can add the codes below to your WordPress theme-functions.php. The text on the placeholder can be easily changed and replace any text and write anything you want.  

function wpforo_search_form( $html ) {

 

        $html = str_replace( 'placeholder="Search ', 'placeholder="Press ENTER to search ', $html );

 

        return $html;

}

add_filter( 'get_search_form', 'wpforo_search_form' );

 

Wordpress Search Form 

 

You can avoid all complex steps by using WP fastest site search plugin by Expertrec

  1. Install WP fastest site search plugin from WordPress plugin store.
  2. Go to https://cse.expertrec.com/newuser?platform=wordpress.
  3. Enter your WordPress website URL and click on next->
  4. The crawl will start in the background.
  5. Login to your WordPress admin panel.
  6. In your left panel you must be able to see expertrec’s WordPress plugin, click on that.
  7. Get your site ID (or) API key from your expertrec control panel ( here ).
  8. Copy paste your site id in your WordPress control panel and click on save changes.
  9. Make sure you have upgraded to a paid plan before 15 days of free trial. (Price begins at 9 USD per month)
  10. That’s it! Your brand new WordPress search is up and running!

Add great search to your wordpress site at 9 USD per month

For more on WordPress Search Form, view the link  

 

You may also like