A tech, tools, gadgets, tips and tricks blog

Monday, 1 June 2015

how to add google custom search engine to your blog/website

No comments :

Google is powerful on the internet. Its product is also powerful. Here we use one of its main useful and free custom search engines for your blog or website. In now days, every template comes with its own search bar but it is not more effectively like Google. If your blog or website has lots of pages and more contents then Google custom search is more helpful to find content on your blog. In this tutorial I am going to share you that how to add Google custom search tool to your blog or website. The process is very simple and I hope that you may like it. Google provide two plan for this search engine tool for 100$ i.e. for large site and dedicated. We do not pay 100$ so we use its free version. Free version is also more effectively.
google custom search engine
So, here are some steps that you will follow to get Google custom search code for your website or blog.
1) Open Google custom search engine
2) In “Sites to Search” add your site url (i.e. www.yoursite.com)
3) By default your language is “English”. If not then change the language “English”.
4) In “Name of the search engine” add your site name (i.e. yoursite)
5) Now click on “Create” button.
You will find out this type code.
&ltscript&gt
  (function() {
    var cx = '008111850503490644161:hrrbfug3xj0';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//cse.google.com/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
  })();
&lt/script&gt
&ltgcse:search&gt&lt/gcse:search&gt
Copy the following code, and paste it into a &ltdiv&gt element in your site's &ltbody&gt section, where you want both of the search box and the search results to render.
That’s it you done it. The main advantages of Google custom search engine is build authority of your site and get better user experience for your site or blog.
I think you may like this tutorial. You can ask me questions related this tutorial on comment-box as well as email me on cksblog007@gmail.com . I will reach to you as soon as possible. Please share your love with your friends. Thanks for reading this article. We will meet with next amazing article.


No comments :

Post a Comment