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".

CommentFileSizeAuthor
#3 uswds-remove_search_box-3040374.patch6.69 KBfskreuz

Comments

fskreuz created an issue. See original summary.

brockfanning’s picture

Totally 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.

fskreuz’s picture

StatusFileSize
new6.69 KB

Attached is the patch of just the search box removal. This was done on top of 2.0 alpha work (f7b73e4).

fskreuz’s picture

Status: Active » Needs review
Irisibk’s picture

Status: Needs review » Reviewed & tested by the community

  • fskreuz authored 17d0bf8 on 8.x-2.x
    Issue #3040374 by fskreuz: Removing append search box config
    
Irisibk’s picture

Status: Reviewed & tested by the community » Fixed

This is now on the dev branch. Thanks @fskreuz!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.