跳到内容

Search Modal Block

v1.3.1

philhoyt · 2024年11月23日 上架

A customizable search modal block that adds an elegant and accessible search experience to your WordPress site.

正在使用
70+
评分
5.0 / 5
累计下载
2,112
最近更新
2026年11月6日
3 条评价需要 WordPress 6.1+已测试到 7.1.5PHP 7.4+

贡献者

截图

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 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 – A lightweight, configurable modal library for web applications.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums