The article discusses Jasper AI, transform the way you create content with Jasper AI! Discover the power of artificial intelligence in writing with its AI-powered content creation service. Create high-quality, original content for your blogs, business, or personal needs in a matter of seconds. With user-friendly interface and affordable pricing, Jasper AI is the perfect tool for enhancing your writing skills and improving productivity. Check out here for a comprehensive review and real-life examples of using Jasper AI.
Adding Voice Search in Blogger/WordPress Website
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.
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:
- Log in to your Blogger account and select the blog you want to add the widget to.
- Go to the "Layout" section of your blog's dashboard.
- 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.
- A window will appear with a list of available gadgets. Click on the "HTML/JavaScript" gadget.
- 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>
- Paste the HTML code into the "Content" box.
- Give the widget a title in the "Title" box (optional).
- Click "Save" to save the widget to your blog.
- Preview your blog to see the widget in action.
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.