Title: Search &amp; Replace Text in Blocks
Author: Fernando Tellado
Published: <strong>2025 年 12 月 9 日</strong>
Last modified: 2026 年 3 月 27 日

---

搜索插件

![](https://ps.w.org/search-replace-text-blocks/assets/banner-772x250.jpg?rev=3415772)

![](https://ps.w.org/search-replace-text-blocks/assets/icon-256x256.png?rev=3415583)

# Search & Replace Text in Blocks

 作者：[Fernando Tellado](https://profiles.wordpress.org/fernandot/)

[下载](https://downloads.wordpress.org/plugin/search-replace-text-blocks.1.1.1.zip)

[实时预览](https://cn.wordpress.org/plugins/search-replace-text-blocks/?preview=1)

 * [详情](https://cn.wordpress.org/plugins/search-replace-text-blocks/#description)
 * [评价](https://cn.wordpress.org/plugins/search-replace-text-blocks/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/search-replace-text-blocks/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/search-replace-text-blocks/#developers)

 [支持](https://wordpress.org/support/plugin/search-replace-text-blocks/)

## 描述

Search & Replace Text in Blocks adds a powerful search and replace functionality
to the WordPress block editor (Gutenberg). Quickly find and replace text across 
all your content blocks without leaving the editor.

**Features:**

 * Search text across all text-based blocks (paragraphs, headings, lists, quotes,
   etc.)
 * Replace single occurrences or all matches at once
 * Built-in Undo button to revert changes
 * Case-sensitive search option
 * Whole word matching option
 * Visual highlighting of found blocks and text
 * Navigate between matches with Previous/Next buttons
 * Toolbar icon in the editor header for quick access
 * Also accessible from the editor’s three-dot menu
 * Keyboard shortcut: Ctrl+Shift+H (Cmd+Shift+H on Mac)
 * Draggable floating panel
 * Auto-focus on search field when opening the panel
 * Accessible and screen reader friendly

**Supported Blocks:**

 * Paragraph
 * Heading
 * List Item
 * Quote
 * Pullquote
 * Verse
 * Preformatted
 * Code
 * Table cells
 * And any block with text content

**How to Use:**

 1. Open any post or page in the block editor
 2. Click the search icon in the top toolbar, press Ctrl+Shift+H (Cmd+Shift+H on Mac),
    or select “Search & Replace” from the editor’s three-dot menu
 3. Enter your search term and click “Find”
 4. Navigate between matches using the arrow buttons
 5. Enter replacement text and click “Replace” or “Replace All”
 6. Use the “Undo” button to revert changes if needed

### Support

#### Need help or have suggestions?

 * [Official website](https://servicios.ayudawp.com/)
 * [WordPress support forum](https://wordpress.org/support/plugin/search-replace-text-blocks/)
 * [YouTube channel](https://www.youtube.com/AyudaWordPressES)
 * [Documentation and tutorials](https://ayudawp.com/)

**Love the plugin?** Please leave us a 5-star review and help spread the word!

### About AyudaWP

We are specialists in WordPress security, SEO, and performance optimization plugins.
We create tools that solve real problems for WordPress site owners while maintaining
the highest coding standards and accessibility requirements.

## 屏幕截图

 * [[
 * Search icon in the editor toolbar
 * [[
 * Search & Replace floating panel
 * [[
 * Visual highlighting of found text

## 安装

 1. Upload the plugin files to `/wp-content/plugins/search-replace-text-blocks/` or
    install through the WordPress plugins screen
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Open any post or page in the block editor and click the search icon in the toolbar
    to start

## 常见问题

### How do I open the Search & Replace panel?

There are three ways to open it:

 1. Click the search icon (magnifying glass) in the editor’s top toolbar
 2. Press Ctrl+Shift+H (Cmd+Shift+H on Mac)
 3. Click “Search & Replace” in the editor’s three-dot menu (⋮) at the top right

### Can I undo replacements?

Yes, use the built-in “Undo” button in the panel to revert all changes made during
the current session.

### Does it work with custom blocks?

The plugin works with any block that stores text in standard attributes (content,
text, value, citation, caption).

### Why doesn’t it find text in some blocks?

Some blocks store content differently or use nested structures. The plugin supports
most common text blocks. If you find a block type that should be supported, please
let us know.

## 评价

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

### 󠀁[Does not work in code editor](https://wordpress.org/support/topic/does-not-work-in-code-editor/)󠁿

 [AJDiseker](https://profiles.wordpress.org/ajdiseker/) 2026 年 2 月 23 日 2 回复

Tried to search and replace HTML tags in code editor, does not search for text enclosed
in HTML tags.

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

### 󠀁[Easy to use](https://wordpress.org/support/topic/easy-to-use-5320/)󠁿

 [Alvaro Torres](https://profiles.wordpress.org/algato333/) 2026 年 1 月 16 日 1
回复

This is what I needed

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

### 󠀁[Useful](https://wordpress.org/support/topic/useful-1069/)󠁿

 [Héctor Tellado](https://profiles.wordpress.org/hectortellado/) 2026 年 1 月 12
日

Great plugin

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

### 󠀁[Simple, genial y útil](https://wordpress.org/support/topic/simple-genial-y-util/)󠁿

 [abrahamcb](https://profiles.wordpress.org/abrahamcb/) 2025 年 12 月 26 日 1 回复

A veces, hay pequeñas funcionalidades que echo de menos en WordPress pero, por suerte,
otras veces encuentro plugins maravillosos como este. ¿Alguna vez has querido hacer
lo típico de buscar y reemplazar texto? Pues con WordPress no podías hasta ahora.
Con este plugin liviano tienes una lupa arriba a la derecha que hace está función
como si estuvieras en cualquier editor de textos.¡Una genial! Simple pero genial.

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

### 󠀁[Basic functionality done right](https://wordpress.org/support/topic/basic-functionality-done-right/)󠁿

 [Yordan Soares](https://profiles.wordpress.org/yordansoares/) 2025 年 12 月 26 
日 1 回复

This plugin provides a simple but much-needed feature, and it does exactly what 
it promises, saving a lot of time when editing content, without unnecessary complexity.
Sometimes basic functionality like this is surprisingly hard to find, so it’s great
to have it available in such a straightforward way. Very useful and appreciated!

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

### 󠀁[Indispensable](https://wordpress.org/support/topic/indispensable-274/)󠁿

 [freelancesgroup](https://profiles.wordpress.org/freelancesgroup/) 2025 年 12 月
24 日 1 回复

Thank you for this wonderful tool.I think it should have been included in WordPress
a long time ago.

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/search-replace-text-blocks/reviews/)

## 贡献者及开发者

「Search & Replace Text in Blocks」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Fernando Tellado ](https://profiles.wordpress.org/fernandot/)
 *   [ Ayuda WordPress ](https://profiles.wordpress.org/ayudawp/)

「Search & Replace Text in Blocks」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/search-replace-text-blocks/contributors)
为本插件所做的贡献。

[帮助将「Search & Replace Text in Blocks」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/search-replace-text-blocks)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/search-replace-text-blocks/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/search-replace-text-blocks/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/search-replace-text-blocks/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/search-replace-text-blocks/)。

## 更新日志

#### 1.1.1

Tested up to WordPress 7.0

#### 1.1.0

 * Added auto-focus on search field when opening the panel
 * Improved usability: cursor is now ready to type immediately after opening

#### 1.0.0

 * Initial release
 * Search across all text blocks
 * Replace single or all occurrences
 * Built-in Undo button
 * Case-sensitive and whole word options
 * Visual highlighting of matches
 * Toolbar icon for quick access
 * Three-dot menu integration
 * Keyboard shortcut support (Ctrl+Shift+H / Cmd+Shift+H)
 * Draggable floating panel

## 额外信息

 *  版本 **1.1.1**
 *  最后更新：**1 周前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/search-replace-text-blocks/) 、 
   [Spanish (Chile)](https://cl.wordpress.org/plugins/search-replace-text-blocks/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/search-replace-text-blocks/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/search-replace-text-blocks)
 * 标签
 * [blocks](https://cn.wordpress.org/plugins/tags/blocks/)[editor](https://cn.wordpress.org/plugins/tags/editor/)
   [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)[replace](https://cn.wordpress.org/plugins/tags/replace/)
   [search](https://cn.wordpress.org/plugins/tags/search/)
 *  [高级视图](https://cn.wordpress.org/plugins/search-replace-text-blocks/advanced/)

## 评级

 4.3 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/search-replace-text-blocks/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/search-replace-text-blocks/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/search-replace-text-blocks/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/search-replace-text-blocks/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/search-replace-text-blocks/reviews/?filter=1)

[添加我的评价](https://wordpress.org/support/plugin/search-replace-text-blocks/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/search-replace-text-blocks/reviews/)

## 贡献者

 *   [ Fernando Tellado ](https://profiles.wordpress.org/fernandot/)
 *   [ Ayuda WordPress ](https://profiles.wordpress.org/ayudawp/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/search-replace-text-blocks/)