Search results - display under the search field
Permalink
I've got a search block added to the header on my website. Also, I've got the search results redirected to separate search-results page and this is working really fine.
But the search results display just under the search box in the header too - covering other elements of the page. How can I remove the results from the header, leaving only the search box? Does anyone have a solution?
But the search results display just under the search box in the header too - covering other elements of the page. How can I remove the results from the header, leaving only the search box? Does anyone have a solution?
I had the same problem.
What I did was modify the search box to a straight line and in the css for the div that it is located in I set the line height to be about 30-35px and turned the overflow visibility to "hidden".
This way (though the information is still displayed under the header search box) it is not visible on the page.
I'm sure there would be a way to make a block override (one specific for the header area) that had the display results information removed. That might help also.
What I did was modify the search box to a straight line and in the css for the div that it is located in I set the line height to be about 30-35px and turned the overflow visibility to "hidden".
This way (though the information is still displayed under the header search box) it is not visible on the page.
I'm sure there would be a way to make a block override (one specific for the header area) that had the display results information removed. That might help also.
I think you could use two templates; one for only the searchbox and one for the results and then add two search blocks on the result page.
Just create a new template for the searchbox where you remove all the code handling the result-rendering.
I havn't tried it but I think it would work.
Just create a new template for the searchbox where you remove all the code handling the result-rendering.
I havn't tried it but I think it would work.
Thank you all for your help!
I've been advised to remove the search block only from the header from 'search-results' page (it still stays on the page template! 'Search-results' needs to be unmarked from 'setup on child pages' for this block).
So if anyone type in keyword on any page of the site - he/she'll be redirected to the 'search-results' page and he/she will see the results only in the body of the page and the search field in the header won't be working.
I've been advised to remove the search block only from the header from 'search-results' page (it still stays on the page template! 'Search-results' needs to be unmarked from 'setup on child pages' for this block).
So if anyone type in keyword on any page of the site - he/she'll be redirected to the 'search-results' page and he/she will see the results only in the body of the page and the search field in the header won't be working.
Hi,
I have the same problem but can't remove the search block from the header since it is a global area and removing it there would result in removal from the header in the rest of the pages.
Is there an alternative solution to avoid watching search results both below the header's search block and in the content section of the search-results page?
Thanks in advance
I have the same problem but can't remove the search block from the header since it is a global area and removing it there would result in removal from the header in the rest of the pages.
Is there an alternative solution to avoid watching search results both below the header's search block and in the content section of the search-results page?
Thanks in advance
Did anyone figure this out for people using a global area for the search block?
If I put a search box into a header, I got a results two times: at first in the header, and in a content too.