Back to Top

how you can add Voice Search in WordPress

Few days back I was playing with WordPress search functionality and found something interesting and it’s about voice search in WordPress.

WordPress is a great platform to build websites in a very efficient way and Nowadays Voice search is becoming a well-known feature provided by google. so Today I am going to explain how you can add voice search functionality into the WordPress site.

Its pretty simple and I didn’t expect that it’s very easy to implement. Let’s have a look into the following line of code:


The x-webkit-speech is an attribute of HTML5 input element with a type of text or search.It is very easy to enable this attribute in wordpress search.

First of all, Open your theme’s searchform.php file and place below the line of code into the input text field like

class="field" type="text" name="s"  placeholder=" />"
x-webkit-speech="true" / >

Now, Update the searchform.php file and go to the front end and check the voice search is working with the search forms in WordPress site.

That’s it.Now you have voice search in your WordPress.

NOTE:It will only work in Google Chrome and if you have installed the extension of Voice Search or if you are using the latest version of chrome

Recommended Read:

Customize Search in WordPress
Blank Screen of WordPress Admin Panel
To get Latitude and longitude using address

Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

Where are the LOG of PHP,MySQL and Apache

Posted on 7 years ago


Hello world

Updated 1 month ago

Nick Carter

In depth Understanding of Laravel Core

Updated 3 months ago


ECMAScript 6 New Features – 2

Updated 1 year ago


The Reader’s Poll – June 2015

Posted on 4 years ago


The Reader’s Poll – August 2014

Posted on 5 years ago


The Reader’s Poll – June 2014

Posted on 5 years ago


The Readers’ Poll – May 2014

Posted on 5 years ago


The Readers’ Poll – August 2013

Posted on 6 years ago