The theme comes with a config that automatically appends a search box on the theme. However...
The theme shouldn't be placing blocks on pages. This is best done in Block Layout. Additional CSS may be needed to inline-block it with the secondary menu. A dedicated region that's already inline-block with the secondary menu region can also be done to avoid writing additional CSS.
Also, the search box the theme appends uses Drupal's built-in search box. But in most government projects, where page counts can reach the thousands, you'll often end up using a combination of Views + Search API + Solr. The built-in search block is often always replaced by a Views Exposed Filter containing a full-text search box. This means the use cases for this config never go beyond a "quick demo".
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | uswds-remove_search_box-3040374.patch | 6.69 KB | fskreuz |
Comments
Comment #2
brockfanning commentedTotally agree. A while back I was thinking about this problem at #2898253: Allow search box to be provided by other modules besides core Search but never figured anything out.
Comment #3
fskreuz commentedAttached is the patch of just the search box removal. This was done on top of 2.0 alpha work (f7b73e4).
Comment #4
fskreuz commentedComment #5
Irisibk commentedComment #7
Irisibk commentedThis is now on the dev branch. Thanks @fskreuz!