how to hide default blog search results and keep only google custom search results

Many people use google custom search in their sites
as we know when we want to make google custom search there is two things

1- google custom search box or engine
2- google search results 
and in your blog also there is two things
1- default blog search box or engine
2- default blog search results

now here is a question come to our minds
if I want to hide google search box and use my default search box or engine to show google results what should I do?
well, you will go to Programmable Search then look and feel and choose results only layout  and that's it

hide default blog search results and keep only google custom search results

but in this case your default blog engine it will show google results and also default blog result as in the picture below 

hide default blog search results and keep only google custom search results


So, the question is how can we make our default blogs search box show only google results and hide default blogs results?

The answer is simple you will go to theme and then edit html you will search for something like this code
<form action='/search'>
just remove /search and it will be like this
<form action=''>
if there are more than one code just remove all of them and click save 

Note: in this case if your article has Not indexed in google yet and someone comes to search for an article in your site he will see "NO results" so for this reason I kept my default search results

مواضيع ذات صلة

إرسال تعليق