[wordpress插件] ACF Simple TooltipACF简单工具提示

wordpress 插件 文章 2020-01-27 11:20 0 362 全屏看文
评分

0

0

描述

Displays ACF field instructions as tooltips using only CSS.

仅使用CSS将ACF字段说明显示为工具提示。

Overview

概述

The Advanced Custom Fields plugin by

高级自定义字段插件

rel="nofollow">Elliot Condon is a fantastic resource for developers, allowing us to structure custom data and create a great user experience for data entry personnel.

rel =“ nofollow”> Elliot Condon 是开发人员的绝佳资源,它使我们能够构建自定义数据并为数据输入人员创造出色的用户体验。

The instruction text for ACF fields is useful, but creates visual clutter in the WordPress interface when there is a lot of instructional text.

ACF字段的说明文本很有用,但是当有很多说明文本时,会在WordPress界面中造成视觉混乱。

Thomas Meyer has created a great plugin to address this issue with his ACF Tooltip Plugin.

Thomas Meyer使用他的 ACF工具提示插件创建了一个出色的插件来解决此问题。

However, when using this plugin on implementations that have a large number of ACF fields, I have seen that performance drops and load-time of the WP Dashboard increases.

但是,当在具有大量ACF字段的实现中使用此插件时,我发现WP仪表板的性能下降且加载时间增加。

This plugin, ACF Simple Tooltip, is a lightweight solution that uses only two lines of JavaScript to add classes to ACF field labels which have instruction text.

此插件ACF Simple Tooltip是一种轻量级解决方案,仅使用两行JavaScript将类添加到具有指令文本的ACF字段标签中。

CSS takes care of the rest (creating the “info” ⓘ icon, styling the instruction text as a tooltip, and creating the hover functionality for showing the tooltip).

CSS负责其余的工作(创建“ info”ⓘ图标,将指令文本设置为工具提示样式,并创建用于显示工具提示的悬停功能)。

Simply install the plugin, and the JS and CSS will enqueue on any post.php page in the WP Dashboard.

只需安装插件,JS和CSS就会进入WP仪表板中的任何post.php页面。

Contact

联系

This is an initial version, so please contact me if you find any issues while using the plugin.

这是初始版本,因此如果在使用插件时发现任何问题,请与我联系。

Happy developing!

开发愉快!

下载地址

https://downloads.wordpress.org/plugin/acf-simple-tooltip.1.1.0.zip

https://downloads.wordpress.org/plugin/acf-simple-tooltip.1.1.0.zip

-EOF-