Adding and customizing the Search block
Permalink Browser Info Environment
I'm looking to add a search bar to the top of the web home page (or in the Header area) on each page the functionality is fine but the current search block display or presentation gives me a problem - I'm trying to get it to fit in a line and be about 60 pixels high.
The problem is that the standard display has too much white space around it.
Ideally, I'd like to use something that displays like the "Intelligent Search that shows when you are in the Dashboard.
I'm not sure how a change to the CSS affects the Viewport theme. (add to customization on the Theme or make a direct change in the CSS - where?? Main or...
Any thoughts or direction would be appreciated.
The problem is that the standard display has too much white space around it.
Ideally, I'd like to use something that displays like the "Intelligent Search that shows when you are in the Dashboard.
I'm not sure how a change to the CSS affects the Viewport theme. (add to customization on the Theme or make a direct change in the CSS - where?? Main or...
Any thoughts or direction would be appreciated.
Type: | Discussion |
---|---|
Status: | In Progress |
additional Display
OK , I tried that and it appears to work (presentation wise) but when I invoke a search (with a defined results page) it puts the page list of search results in the header area ... and then it shows again on the "search page" as it should.
What if I put the search in the "Feature" area just below the menu. Is it just a matter of changing "Header" to Feature in your CSS code??
Also - spacing is an issue and I'd like to reduce white space 2 areas (1/2 inch) to something less .. found (1) under the top band (Home and date) and (2) between the Header and the Feature below the menu ... again more CSS
Thoughts
What if I put the search in the "Feature" area just below the menu. Is it just a matter of changing "Header" to Feature in your CSS code??
Also - spacing is an issue and I'd like to reduce white space 2 areas (1/2 inch) to something less .. found (1) under the top band (Home and date) and (2) between the Header and the Feature below the menu ... again more CSS
Thoughts
You need to be able to remove the search block from the header on the search results page. But since it's a Global Area you won't really be able to do that. Maybe you can try hiding it with CSS on that page. Try adding this CSS to the "Header Extra Content" custom attribute field on that page:
Where exactly is the other spacing you'd like to reduce?
<style> header .ccm-search-block-form { display:none!important; } </style>
Where exactly is the other spacing you'd like to reduce?