[WordPress] 外掛分享: Minimal Search Term Highlight

前言介紹

  • 這款 WordPress 外掛「Minimal Search Term Highlight」是 2018-08-08 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2018-12-14,距離現在已有 2333 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.4.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

mjke87 |

外掛標籤

search | Highlight | minimalist | search results |

內容簡介

這個簡單且輕量級的外掛可以在搜尋結果頁面上突顯搜尋字詞。當您透過搜尋結果導向至內容頁面時,搜尋字詞也會在內容頁面上被突顯。此功能是透過在搜尋結果頁面中使用專門的 URL 實現的。

突顯搜尋結果和內容頁面上的搜尋字詞
不需要進行任何設置
不會使用 JavaScript
不會使用 StyleSheet
僅使用 WordPress 的標準 hook
僅有 30 行程式碼

突顯

這個功能是透過將每個搜尋字詞使用 標記包裹實現的。此外掛不提供任何樣式,通常瀏覽器會使用明亮的黃色背景來顯示標記。建議在您的佈景主題 CSS 中定義自己的 mark 樣式。

安裝

只需安裝和啟用外掛即可,不需要進行任何設置。

疑難排解

大多數情況下,外掛可以直接使用,如果您遇到任何問題,這可能是由於您的佈景主題或網站上的其他外掛不相容所致。請在支援區塊中開啟主題,我們會一起解決問題。

原文外掛簡介

This minimal and lightweight plugin will highlight search terms on your search result page. Furthermore, when you navigate to a content page via the search result, the search terms will be highlighted on the content page as well. This works by using specialized URLs on the search result page.

Highlight search terms on the search result and content pages
No configuration needed
No JavaScript
No StyleSheet
Only standard WordPress hooks used
Only 30 lines of code

Highlighting
The highlighting works by wrapping each search term with tag. The plugin does not provide any styling. Browser’s typically display mark tags with a bright yellow background. It is recommended to define your own styling for mark elements in your theme CSS.
Installation
Simply install and activate the plugin. No configuration is needed.
Troubleshooting
In most cases, the plugin works out-of-the-box, should you experience any problems it is most likely due to an incompatibility with your theme or another plugin on your site. Please open a topic in the support section and we’ll figure it out together.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Minimal Search Term Highlight」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Minimalist editor 》如果你只想專注於寫作時,預設的 WordPress 編輯器可能會帶來許多干擾和雜亂,讓你分心。, Minimalist Editor 把你的文章編輯器轉換成數位打字機,畫面上只剩...。

文章
Filter
Apply Filters
Mastodon