Categories: Implementation :

how to remove the search box from the results page?

Showing 1-10 of 10 messages
how to remove the search box from the results page? articlelog 9/30/11 8:07 AM
I have create a Google CSE with results only layout and set the page where I need the results to be displayed. Added the Search box code to my header, and the search results code to my results page. 

My problem is when something is searched, the results are appearing on the results page, but another search box is coming at the top of the page. 

How do I remove this search box?

Please check my website - http://goo.gl/WgBvs

Re: how to remove the search box from the results page? hxu-cse 9/30/11 6:23 PM
Looks like you used the two-page hosting option instead of results-only.

You can go to your CSE control panel's Look and Feel tab, select the Results-only hosting option, click the "Save & Get Code" button, and then copy and paste the code snippet to your site.

Please let us know if that works for you.
Re: how to remove the search box from the results page? hxu-cse 9/30/11 6:24 PM
btw, take a look at the example here (you can use your existing search box code):
Re: how to remove the search box from the results page? Gulshan Sahu 10/1/11 6:15 AM
thanks
Re: how to remove the search box from the results page? articlelog 10/2/11 6:38 AM
Hi thanks for the solution. Now the search box has disappeared, but along with that google ads also not showing. I need them also. Please suggest me a solution.
Re: how to remove the search box from the results page? hxu-cse 10/3/11 5:39 PM
Taking a look...
Re: how to remove the search box from the results page? hxu-cse 10/4/11 5:07 PM
It likely hits a corner case that we'll fix asap.  In the meantime, could you try if removing "display:table" from the following style sheet can work around this?

/* Entry */
.entry {
   display: table;
   padding: 10px 0 10px 0;
   line-height: 19px;
}
Re: how to remove the search box from the results page? articlelog 10/5/11 4:48 AM
I tried removing "display:table" from the style sheet, but still ads are not appearing. No again I changed to Two Page option and ads are appearing. But couldn't find a solution to remove the 2nd Search Box. Thanks for your help.
Re: how to remove the search box from the results page? hxu-cse 10/27/11 9:44 PM
This should have been fixed. Could you verify? Thanks!
Re: how to remove the search box from the results page? CyberData 12/31/11 2:05 AM
The solution is simple

just add this line...     options.enableSearchResultsOnly(); into the code.

    var options = new google.search.DrawOptions();
    options.setAutoComplete(true);
    options.enableSearchResultsOnly();
    customSearchControl.draw('cse', options);
    var queryFromUrl = parseQueryFromUrl();
    if (queryFromUrl) {
      customSearchControl.execute(queryFromUrl);