Adding Voice Search in Blogger/WordPress Website

This quick guide will show you how to integrate a voice search widget into your Blogger/WordPress blog. This feature allows users to search by voice instead of typing information on your blog. This saves time and effort and adds a practical touch to your blog's user experience. We will also briefly explain how to add a voice search widget to your WordPress blog too. 

Adding voice search features
A successful blog not only provides quality content but also provides another way to make the user experience easier and faster. As a blogger, it's important not to grab the attention of your readers and not allow to move them to another blog. A customized blog is the recommended way to achieve this. Voice search is a valuable feature that allows readers to search blog content using their voice.

This voice search widget in blogger, not only will this save you time, but it will also add a professional touch to your blog design. Adding voice search to your blog can improve user experience & keep your followers engaged.

In this article, we'll see the benefits of voice search and how to add this voice-searching widget to your Blogger/WordPress blog. Check out a step-by-step guide to customize your blog and make it accessible to your readers. Using this feature will make your blog more professional and user-friendly, ultimately resulting in a more positive user experience. 
Adding voice search to your Blogger or WordPress website will greatly improve your user experience and make it more accessible to more users. This feature saves time and effort by allowing users to use their voice to search for content instead of typing.
Adding voice search to your Blogger or WordPress website will greatly improve your user experience and make it more accessible to more users. This feature saves time and effort by allowing users to use their voice to search for content instead of typing.

Benefits of Voice Search

First, let's talk about the benefits of having a voice search widget on your blog.
  • First, it addresses users who have difficulty in typing or navigating in the traditional search bar.
  • Secondly, add a modern and practical touch to your blog design.
  • Lastly, it saves users time and effort, and can ultimately lead to a more positive user experience.

Adding Voice Search in Blogger

You'll need to add the voice search code to your blog's HTML. This code creates a button that activates the voice search functionality when clicked. You can customize the appearance of this button to match your blog's theme. After adding the button code, you need to add the JavaScript code that handles the voice search functionality. This code listens for the user's spoken input and converts it to text. This text will be used to search the content of your blog and display relevant results.

Steps to add voice search widget in blogger: Here are the steps to add HTML code of a voice search widget to your Blogger blog:
  1. Log in to your Blogger account and select the blog you want to add the widget to.
  2. Go to the "Layout" section of your blog's dashboard.
  3. Click on "Add a Gadget" where you want to add the widget. For example, you can add it to the sidebar, header, footer, or anywhere else on your blog.
  4. A window will appear with a list of available gadgets. Click on the "HTML/JavaScript" gadget.
  5. A new window will appear, prompting you to enter the HTML code for the widget. Copy the HTML code provided below.
    <center>
    <style>
    #search-form {
    max-width: 90%;
    .adding: 0 7px;
    margin: 0;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2% 3%;
    background-color: #fff;
      	}
    #search-form input {
    width: 80%;
    border: 0;
    outline: none;
    background: transparent;
      	}
    #search-form img {
    float: right;
    width: 40px;
    	}
    </style>
    <form id="search-form" method="get" action="/search" target="_blank"><input type="text" name="q" placeholder="Search here.." /><img onclick="vSearch()" src="data:image/svg+xml,%3Csvg width='64px' height='64px' viewBox='0 0 24.00 24.00' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='%23000000' stroke-width='0.00024000000000000003'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM13.2631 11.7368C13.2631 12.6105 12.5578 13.3158 11.6842 13.3158C10.8105 13.3158 10.1052 12.6105 10.1052 11.7368V8.57895C10.1052 7.70526 10.8105 7 11.6842 7C12.5578 7 13.2631 7.70526 13.2631 8.57895V11.7368ZM11.6842 8.05265C11.3947 8.05265 11.1579 8.28949 11.1579 8.57897V11.7369C11.1579 12.0263 11.3947 12.2632 11.6842 12.2632C11.9789 12.2632 12.2105 12.0316 12.2105 11.7369V8.57897C12.2105 8.28949 11.9736 8.05265 11.6842 8.05265ZM15.3684 11.7368H14.4737C14.4737 13.3158 13.1368 14.421 11.6842 14.421C10.2316 14.421 8.89474 13.3158 8.89474 11.7368H8C8 13.5316 9.43158 15.0158 11.1579 15.2737V17H12.2105V15.2737C13.9368 15.0158 15.3684 13.5316 15.3684 11.7368Z' fill='%23ff7300'%3E%3C/path%3E%3C/g%3E%3C/svg%3E" /></form>
    <script>
    function vSearch() {
    if(window.hasOwnProperty('webkitSpeechRecognition')) {
    let recognition = new webkitSpeechRecognition(); recognition.lang = 'en-US'; recognition.start(); recognition.onresult = function (e) {
    document.querySelector('#search-form input').value = e.results[0][0].transcript; recognition.stop(); document.querySelector('#search-form').submit();
    }; recognition.onerror = function (e) {
    recognition.stop();
    		};
    	}
    }
    </script>
    </center>
    
  6. Paste the HTML code into the "Content" box.
  7. Give the widget a title in the "Title" box (optional).
  8. Click "Save" to save the widget to your blog.
  9. Preview your blog to see the widget in action.
That's it! You have successfully added the HTML code of a voice search widget to your Blogger blog. You can repeat the process to add more widgets to your blog.


Adding Voice Search in WordPress

If you have a WordPress blog, the process is similar. You can add the code given below in your widget HTML slot.

However, specially for WordPress users, instead of adding code to your blog's HTML, you can also use a plugin to integrate the voice search widget. There are several WordPress plugins available that offer this feature, such as the WP Speech Recognition Plugin.


Bottom Line

In summary, adding the HTML & JS code of the voice search widget to your blog will considerably improve the user experience and make your blog easy to explore for all readers.

This process may seem difficult at first but is easily added with the right tools and resources. By following the steps outlined in this article, you can add this latest and greatest feature to your Blogger or WordPress blog. 


If you enjoyed this article, please share it with your friends and help us spread the word.

Next Post Previous Post
No Comment
Add Comment
comment url
But before you read the page, I just want to tell you that; you can now convert every visitor & every impression in $$$ with the most advanced & reliable monetization platform that having highest fill rate & the best payouts in the industry.
ADTR Network

One day approval. Monetize your traffic from day 1, with 100% fill rates, higher CPM, & quick payouts. Register to Start Earning Right Now →

Join
ADTR Network
Now

New AI-Powered Content Marketing Toolkit
Rated 5/5 stars in 10,000+ reviews. Stay ahead of the competition with next-gen tech adoption by optimizing content for the target audience to drive 3x faster results. Act now to gain a competitive edge in the market.

ADTR

Improve Revenue, Performance,
&
Grow Traffic Faster

Join Adsense Certified Ad Partner
"ADTR is a must have automatic testing tool for serious publishers."
300% Rise
in AdSense Earnings
Get results from Day 1
It's FREE
Read The Case Study

Testimonials

Client Name 1

I joined PBB when I started blogging 6 years ago. It was my go-to resource for just about ANYTHING!! Without it, I would not have continued down this journey. Having the support, motivation and resources available when you’re in such a lonely profession like blogging is crucial to success. Thank you PBB for helping me turn my passion into a full-time career!!!.

Nikhil Agarwal
Client Name 2

Thank you! After many years of dreaming and enjoying the beauty and insight from numerous blogs I found the courage to start one myself. I could not have done it with your step-by-step guidance! Thank you so much for Pro Blog Booster, for your patient instructions, and for your nudge to publish before it is perfect! I have a long way to go, but am excited to be tippy-toeing into the blog world!

Nandhini Sinha
Client Name 3

I highly recommend ProBlogBooster to any new tech blogger. I began my journey several years ago. The site holds a wealth of information and is both inspiring and educational. They keep up-to-date with the latest standards and trends bringing key information to help you start and grow your technology blogging business. The tech tuts are very in details and the support you receive will help to overcome any challenges along the way. Again, I highly recommend PROBLOGBOOSTER as your companion for tech blogging!

Arnab Tamada
Client Name 4

Problogbooster is awesome. If you’re serious about taking your blog to the next level then there’s no better blog. It has given me the confidence to keep growing my eCommerce site and view it as a serious business.

Matt Flynn

Disclaimer

We are a professional review site that operates like any other website on the internet. We value our readers' trust and are confident in the information we provide. The post may contain some affiliate/referral links, and if you make a purchase through them, we receive referral income as a commission. We are unbiased and do not accept fixed marketing articles or fake reviews. We thoroughly test each product and only give high marks to the very best. We are an independent organization and the opinions/views/thoughts expressed here are our own.

Privacy Policy

All of the ProBlogBooster ideas are free for any type of personal or commercial use. All I ask is to keep the footer links intact which provides due credit to its authors. From time to time, we may use visitors/readers, information for distinct & upcoming, unanticipated uses not earlier disclosed in our privacy notice. If collected data or information practices changed or improved at some time in the future, we would post all the policy changes to our website to notify you of these changes, and we will use for these new purposes only data collected from the time of the policy change forward. If you are concerned about how your information is used, you should check back our website policy pages periodically. For more about this just read out; Privacy Policy