
內容簡介
這個外掛可以讓你輕鬆定義當訪客在文章或頁面上懸停滑鼠在單詞或短語上時出現的説明文字。
透過外掛的設置,只需要指定你想要與懸停文字關聯的單詞或短語,以及所需的懸停文字本身。格式非常簡單,以下是一個範例:
WP => WordPress
Matt => Matt Mullenweg
The Scooby Shack => the bar where the gang hangs out
可以透過設置和過濾器控制外掛的其他功能有:
可以啟用留言的懸停文字(預設不啟用)
可以使懸停文字不區分大小寫(預設區分大小寫)
可以限制每個單詞或詞語在每篇文章中只有一次替換,達到懸停文字目的(預設是所有詞彙的所有出現都是懸停文字)
懸停文字可以使用預設的瀏覽器工具提示(預設使用外觀更好的qTip2庫)
可以擴展懸停文字以影響其他過濾器
注意: 這不同於我的文本替換外掛程式,文本替換定義要替換為替換文本的詞彙或短語在您的網站上顯示時。文本懸停則會在訪問者懸停於詞匯上方時,以附加資訊的形式添加懸停文字,否則它會像您輸入的那樣顯示在文章中。
連結: 插件首頁 | 插件目錄頁面 | GitHub | 作者首頁
開發者文檔
開發者文檔可以在DEVELOPER-DOCS.md中找到。該文檔涵蓋了外掛提供的眾多過濾器。以下列出這些過濾器以提供概述。
c2c_text_hover_filters : 自定義要應用文本懸停文字的過濾器。
c2c_text_hover_third_party_filters : 自定義要應用文本懸停文字的第三方過濾器。
c2c_text_hover_filter_priority : 覆蓋的預設優先級。
c2c_text_hover自定義或覆蓋定義所有文本懸停詞彙及其懸停文字的設置。
c2c_text_hover_comments : 自定義或覆蓋啟用留言中的文本懸停文字的設置。
c2c_text_hover_case_sensitive : 自定義或覆蓋表示文本懸停文字是否區分大小寫的設置。
c2c_text_hover_once : 自定義或覆蓋表示文本懸停文字是否僅限於每段正在處理的文字的每個詞彙一次的設置。
c2c_text_hover_use_pretty_tooltips : 自定義或覆蓋表示是否使用外觀更漂亮的工具提示的設置。
外掛標籤
開發者團隊
原文外掛簡介
This plugin allows you to easily define help text that appears when a visitor hovers their mouse over a word or phrase in a post or page.
Via the plugin’s settings, simply specify the words or phrases that you want to be associated with hover text, and of course, the desired hover texts themselves. The format is quite simple; an example of which is shown here:
WP => WordPress
Matt => Matt Mullenweg
The Scooby Shack => the bar where the gang hangs out
Additional features of the plugin controlled both via settings and filters:
Hover text can be enabled for comments (it isn’t by default)
Hover text can be made case insensitive (it is case sensitive by default)
Hover text can be limited to doing only one replacement per term, per post (by default, all occurrences of a term are given hovertext)
Hover text can be rendered using the default browser tooltip (by default, the better-looking qTip2 library is used)
Hover text can be expanded to affect other filters
Note: This is not the same as my Text Replace plugin, which defines terms or phrases that you want replaced by replacement text when displayed on your site. Text Hover instead adds the hover text as additional information for when visitors hover over the term, which is otherwise displayed in the post as you typed it.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
Developer Documentation
Developer documentation can be found in DEVELOPER-DOCS.md. That documentation covers the numerous hooks provided by the plugin. Those hooks are listed below to provide an overview of what’s available.
c2c_text_hover_filters : Customize what hooks get text hover applied to them.
c2c_text_hover_third_party_filters : Customize what third-party hooks get text hover applied to them.
c2c_text_hover_filter_priority : Override the default priority for the c2c_text_hover filter.
c2c_text_hover Customize or override the setting defining all of the text hover terms and their hover texts.
c2c_text_hover_comments : Customize or override the setting indicating if text hover should be enabled in comments.
c2c_text_hover_case_sensitive : Customize or override the setting indicating if text hover should be case sensitive.
c2c_text_hover_once : Customize or override the setting indicating if text hovering should be limited to once per term per piece of text being processed regardless of how many times the term appears.
c2c_text_hover_use_pretty_tooltips : Customize or override the setting indicating if prettier tooltips should be used.
