內容簡介
簡介:Easy Search and Replace 外掛可以讓你在不改變原始檔案的情況下進行即時的文字、HTML 或網址替換。它還包含一個可選的 CSS 選擇器功能,可以在特定的 CSS 類別、ID 或標籤中進行替換。
特點:
- 可以在不修改原始檔案的情況下進行即時的 HTML、文字或網址替換。
- 可以指定要查找和替換的文字或程式碼。
- 可選的 CSS 選擇器支援,可以在特定的 CSS 類別、ID 或標籤中進行有針對性的替換。
使用方法:
1. 啟用外掛後,在 WordPress 管理面板中導航到「Easy Search and Replace」選單。
2. 在「查找」欄位中輸入要替換的文字或程式碼。
3. 在「替換」欄位中輸入替換文字,或留空以移除內容。
4. 利用選填的「CSS 選擇器」欄位,在特定的 CSS 類別、ID 或標籤中執行有針對性的替換。
5. 點選「儲存」按鈕,即時應用變更。
範例:
進行基本文字替換:
1. 在「查找」欄位中輸入要找尋的文字。
2. 在「替換」欄位中輸入替換文字。
3. 點選「儲存」以全域應用變更。
在特定的 CSS 選擇器中進行替換:
1. 在「查找」欄位中輸入要找尋的文字。
2. 在「替換」欄位中輸入替換文字。
3. 在「CSS 選擇器」欄位中輸入要進行替換的類別、ID 或標籤。
4. 點選「儲存」以僅在指定的 CSS 選擇器中應用變更。
外掛標籤
開發者團隊
② 後台搜尋「Easy Search Replace – Find & Replace Text/HTML/URLs, Remove Footer Credit」→ 直接安裝(推薦)
原文外掛簡介
The Easy Search Replace plugin lets you find and replace any text, HTML, or URL across your WordPress site in real time—without editing files or the database.
It’s the safest way to do search and replace on front-end output. Update branding, fix old links, or remove footer credit with a few clicks.
Target replacements precisely with:
– CSS selectors (e.g., .footer, #site-title, h2)
– Post Types (Posts, Pages, CPTs)
– Specific Post IDs (comma separated)
– Exact URLs (one per line)
Why it’s safe:
All changes are applied dynamically at render time. Disable the plugin and your original content is unchanged.
Popular use cases
– Remove or replace theme footer credits.
– Replace company names, links, or copyright lines.
– Update outdated or HTTP→HTTPS URLs.
– Find/replace only inside specific HTML elements.
– Limit changes to selected posts/pages/URLs.
Features
Real-time search replace and find replace for text, HTML, and URLs.
Remove footer credit or any unwanted text/link.
Optional CSS selector targeting (classes, IDs, tags).
Limit by post type, post ID, or URL.
Case-insensitive mode (Ignore Case).
Multiple rules, executed in order.
Lightweight: parses DOM only when selector rules exist.
Clean, simple settings UI.
Usage
Open Settings → Easy Search Replace.
Find: Enter text/HTML/URL to search.
Replace with: Enter the replacement (leave empty to remove—great for footer credits).
(Optional) CSS Selector to restrict to specific elements (e.g., .site-footer, #main, h1).
(Optional) Limit by Post Types, Post IDs, or URLs (one per line).
Enable Ignore Case if needed.
Add multiple rules and Save Changes.
Examples
Replace text globally
Find: Old Company
Replace: New Company
Remove footer credit (selector-based)
Find: Powered by MyTheme
Replace:
Selector: .site-footer
Replace URL site-wide
Find: http://oldsite.com
Replace: https://newsite.com
Only on specific posts
Find: Coming Soon
Replace: Launching Now
Post IDs: 25,47,88
Case-insensitive
Enable Ignore Case to match “WordPress”, “wordpress”, etc.
