AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Custom google search engine11/15/2022 ![]() ![]() Visit " Settings"to setup the " WP Google Search"plugin.Without modifying your WordPress theme files. WP Google Search is a handy plug-in to use. The first method is Add Google Search in WordPress with a Plugin. Plugin: Add Google Search in WordPress with a Pluginġ.Plugin: Add Google Search in WordPress with a Plugin.There are two main ways to add Google Search Engine into WordPress: Ways to insert Google Search Engine in WordPress that limits the search to your website only.Using Google Custom Search Engine in WordPress is a great alternative. Yet, you need to manage them and it slow down your server resources. There are plenty of paid search plugins for WordPress, such as SearchWP. The default search feature within WordPress often fails to find relevant results. Here you can choose different colors for the titles, URLs and snippets, switch to a different font family (default is Arial) and also choose a different color for the background.Why use Google Custom Search Engine in WordPress? PS:If you would like to use a custom color scheme for your custom search engine, go to /cse, choose your search engine and then switch to the Look and Feel tab. These rules will also come handy when you don’t have the permission to change the default look and feel from the Custom Search editor. * Highlight the pagination buttons at the bottom of search results */ * Do no display the URL of web pages in search results */ * Google Custom Search highlights matching words in bold, toggle that */ * Change the font size of snippets inside search results */ * Change the font size of the title of search results */ * Hide the snippets in Google search results */ * Hide the thumbnail images in search results */ * Hide the Google branding in search results */ * Do no display the count of search results */ * Add a border between individual search results */ * Use a different font family for search results */ Here are some more CSS rules that you may use to style your Custom Search engine. The Custom Search editor won’t let you change the font size the title and results but with CSS, you can do that easily. gsc-result-info to only display titles and not snippets. If you would like to hide that particular block, you can add a rule in your stylesheet that says. You can use set the style for a class as display:none to hide a particular element or use the regular font, color, border properties to stylize that element.įor instance, lets target the info box in search results that displays the result count (class=gsc-result-info). ![]() As annotated in the above screenshot, every element in the search results page has a class associated with it. You cannot add these custom styles though the Custom Search editor but you can write simple CSS rules that will bring the same effect. ![]() If you have ever used the site search function on, you may noticed that the search results are styled slightly different - there’s no URL displayed beneath the titles, the matching keywords aren’t highlighted in bold and the pagination numbers are displayed as square buttons. Google Custom Search with Custom CSS Styles You do have an option to choose a different color scheme and font family for your search results* but that’s pretty much it. Google Custom Search, by default, uses the classic Google layout - blue titles, green links and black snippets - for styling search results on your site. You just have to add a JavaScript snippet to your template and visitors will be able to easily find content they are looking for on your website. Google Custom Search makes your website searchable using the same technology that powers the main search engine. ![]()
0 Comments
Read More
Leave a Reply. |