plugin-icon

Minimal Search Term Highlight

作者:mjke87·
Ultra-minimalist plugin to highlight search results.
版本
1.0.1
最后更新
Dec 14, 2018

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 <mark> 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.

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 5.0.24
这个插件是可用的下载,适用于您的站点。