Title: Search Modal Block
Author: philhoyt
Published: <strong>November 23, 2024</strong>
Last modified: June 18, 2026

---

Search plugins

![](https://ps.w.org/search-modal-block/assets/banner-772x250.png?rev=3577204)

![](https://ps.w.org/search-modal-block/assets/icon-256x256.png?rev=3577204)

# Search Modal Block

 By [philhoyt](https://profiles.wordpress.org/philhoyt/)

[Download](https://downloads.wordpress.org/plugin/search-modal-block.1.3.0.zip)

 * [Details](https://scn.wordpress.org/plugins/search-modal-block/#description)
 * [Reviews](https://scn.wordpress.org/plugins/search-modal-block/#reviews)
 *  [Installation](https://scn.wordpress.org/plugins/search-modal-block/#installation)
 * [Development](https://scn.wordpress.org/plugins/search-modal-block/#developers)

 [Support](https://wordpress.org/support/plugin/search-modal-block/)

## Description

The Search Modal Block enhances your WordPress site with a modern, popup search 
interface that’s both beautiful and functional. Built specifically for the block
editor (Gutenberg), it provides a seamless way to add search functionality to any
part of your content.

**Key Features:**

 * Clean, minimal design that works with any theme
 * Fully responsive layout
 * Accessibility-ready with ARIA labels and keyboard navigation
 * Customizable text elements:
    - Search input placeholder
    - Search button text
    - Screen reader labels
 * Focus-visible support for better keyboard navigation
 * Seamless integration with WordPress search

**Perfect For:**

 * Minimalist themes needing an elegant search solution
 * Sites wanting to improve their search UX
 * Accessibility-focused websites
 * Any WordPress site using the block editor

### Development

This block is built using the WordPress Create Block tool, ensuring compatibility
with modern WordPress standards and practices. The source code is available in the
plugin’s `/src` directory.

#### Building from Source

To build the plugin from source:

 1. Clone the repository
 2. Install dependencies with `npm install`
 3. Run `npm run build` to build the production files
 4. For development, use `npm run start` to start the development server

The build process uses @wordpress/scripts to compile and minify the JavaScript and
CSS files. The source code for the compiled files in the `/build` directory can 
be found in the `/src` directory.

#### Development Dependencies

 * @wordpress/scripts: ^32.4.1
 * @wordpress/eslint-plugin: ^25.4.1
 * @wordpress/stylelint-config: ^23.40.1
 * eslint: ^9.39.4

The complete source code is available on GitHub: https://github.com/philhoyt/search-
modal-block

### Credits

This plugin uses the following third-party libraries:

 * [MicroModal](https://micromodal.vercel.app/) – A lightweight, configurable modal
   library for web applications.

## Screenshots

[⌊The search modal block in the block editor with customizable settings.⌉⌊The search
modal block in the block editor with customizable settings.⌉[

The search modal block in the block editor with customizable settings.

[⌊The search modal displayed on the frontend after being triggered by the search
icon.⌉⌊The search modal displayed on the frontend after being triggered by the search
icon.⌉[

The search modal displayed on the frontend after being triggered by the search icon.

## Blocks

This plugin provides 1 block.

 *   Search Modal Block Add an elegant popup search interface to your site with 
   customizable text and accessible design.

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/` directory, or install the
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to the block editor and search for “Search Modal Block” in the block inserter
    to add it to your content.

## FAQ

### How do I customize the search button appearance?

The search button inherits your theme’s colors by default. You can customize its
appearance using your theme’s custom CSS or the WordPress site editor.

## Reviews

![](https://secure.gravatar.com/avatar/9792e025fdf0b7dbda3a7ee84092c861ccd6467d53882080bb9f39b7f9eda867?
s=60&d=retro&r=g)

### 󠀁[Love this plugin!](https://wordpress.org/support/topic/love-this-plugin-1289/)󠁿

 [debbitage](https://profiles.wordpress.org/debbitage/) September 12, 2025

It’s awesome that it gives you a block for the block editor! It’s simple and minimal,
which is exactly what I wanted. I did not want one of those big text fields just
sitting in my nav bar. The pop-up is perfect, too, taking on your site colors. It
was so easy to implement. Thank you!

![](https://secure.gravatar.com/avatar/9c24d83527f27d0d1f873bf585eef4ff9b2bc982745387a77390c5557f14867e?
s=60&d=retro&r=g)

### 󠀁[Lightweight and works great!](https://wordpress.org/support/topic/lightweight-and-works-great-6/)󠁿

 [Nagesh Pai](https://profiles.wordpress.org/nagpai/) July 23, 2025

I tried this plugin just now for a site that I am building. It does its focused 
task very well! I wish the function were there in core, but this one fills the gap
perfectly! Thanks to the developer for building and sharing this!

![](https://secure.gravatar.com/avatar/4fe54f6d858db4f73ed13c5b73c8b455bbfd74bec93879fcc135fcc85a99f4b1?
s=60&d=retro&r=g)

### 󠀁[Simple straight-forward block, does exactly what I need it to do](https://wordpress.org/support/topic/simple-straight-forward-block-does-exactly-what-i-need-it-to-do/)󠁿

 [Greg Farries](https://profiles.wordpress.org/interstrategy/) June 3, 2025

The block appears to be well coded, and it solves the problem I had perfectly. Developer
is also responsive, and I look forward to future versions. Thanks!

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/search-modal-block/reviews/)

## Contributors & Developers

“Search Modal Block” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ philhoyt ](https://profiles.wordpress.org/philhoyt/)

[Translate “Search Modal Block” into your language.](https://translate.wordpress.org/projects/wp-plugins/search-modal-block)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/search-modal-block/),
check out the [SVN repository](https://plugins.svn.wordpress.org/search-modal-block/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/search-modal-block/)
by [RSS](https://plugins.trac.wordpress.org/log/search-modal-block/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3.0

 * Changed the search field to type=”search” for the native clear control and more
   accurate semantics
 * Added block deprecations so blocks added in earlier versions keep working after
   updating
 * Updated MicroModal to 0.7.0
 * Tested up to WordPress 7.0

#### 1.2.0

 * WordPress 6.9
 * Fixed form action URL to work correctly on subdirectory and multisite installations
 * Improved accessibility with proper ARIA labels and modal title

#### 1.1.0

 * Added ability to upload custom icons for the search button
 * Added icon size controls with preset sizes (S, M, L, XL) and custom size option

#### 1.0.1

 * Include assets for .org
 * Include src for .org

#### 1.0.0

 * Initial release with search modal block functionality
 * Customizable placeholder text, button text, and label text
 * Responsive and accessible design
 * Integration with WordPress search functionality
 * Focus-visible support for enhanced keyboard navigation

## Meta

 *  Version **1.3.0**
 *  Last updated **4 weeks ago**
 *  Active installations **50+**
 *  WordPress version ** 6.1 or higher **
 *  Tested up to **7.0.1**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/search-modal-block/)
 * Tags
 * [block](https://scn.wordpress.org/plugins/tags/block/)[modal](https://scn.wordpress.org/plugins/tags/modal/)
   [search](https://scn.wordpress.org/plugins/tags/search/)[search form](https://scn.wordpress.org/plugins/tags/search-form/)
 *  [Advanced View](https://scn.wordpress.org/plugins/search-modal-block/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/search-modal-block/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/search-modal-block/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/search-modal-block/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/search-modal-block/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/search-modal-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/search-modal-block/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/search-modal-block/reviews/)

## Contributors

 *   [ philhoyt ](https://profiles.wordpress.org/philhoyt/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/search-modal-block/)