Skip to main content

The {{search}} helper outputs a search icon button that launches Ghost search when clicked. The color of the icon uses the currentColor CSS property, meaning it will match the color of text around it. The styling can be overriden by using the .gh-search-icon class plus !important.

Example Code

The helper will output the following markup:
For other ways to launch Ghost search and to learn more about this feature, see the Ghost search documentation.