Find & Replace Blocks
Got duplicate blocks and patterns spread out across several pages on your WordPress site that all need to be updated? Don’t want to update each individually? I don’t blame you. This free WordPress plugin let’s you replace all matching blocks or patterns on your site quickly.
How It Works
- Open the tool — In your WordPress admin, go to Tools → Find & Replace Blocks & Patterns.
- Get your markup — Open any post or page in the block editor, switch to Code Editor view (Options menu → Code editor, or Ctrl/Cmd + Shift + Alt + M), and copy the exact block or pattern markup you want to find.
- Paste into Find — Paste the markup into the Find field.
- Paste into Replace — Paste your replacement markup into the Replace field. Leave it empty to delete all matches.
- Select post types — Check or uncheck the post types you want to search. All public post types are listed.
- Preview first — Click Preview Matches to see a list of every post that contains the search string, including match counts and whether revisions are supported.
- Execute — Once satisfied with the preview, click Execute Replace. A revision is automatically saved beforehand for any post type that supports them, so you can revert via the post editor if needed.