[wordpress插件] ACF Color SwatchesACF色板

wordpress 插件 文章 2020-01-26 07:00 461 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

An add-on for Advanced Custom Fields to allow users to select from a list of color choices.

“高级自定义字段”的附件,允许用户从颜色选择列表中进行选择。

Setting up the field works exactly like setting up a radio button list, the main difference being that the key will also be used to style the element.

设置字段的工作原理与设置单选按钮列表的工作原理完全相同,主要区别在于该键也将用于设置元素的样式。

This is useful for allowing users to pick from a limited selection of colors, rather than enter an arbitrary hex value or choose from a color picker.

对于允许用户从有限的颜色选择中进行选择,而不是输入任意十六进制值或从颜色选择器中进行选择,这很有用。

Supports all of the following color formats:

支持以下所有颜色格式:

    • hex: #FF0000
    • 十六进制:#FF0000

    • rgb: rgb(255,0,0)
    • rgb:rgb(255,0,0)

    • rgba: rgba(255,0,0, 1)
    • rgba:rgba(255,0,0,1)

    • hsl: hsl(0,100%,50%)
    • hsl:hsl(0,100%,50%)

    • hsla: hsla(0,100%,50%, 1)
    • hsla:hsla(0,100%,50%,1)

    • name: red
    • 名称:红色

    Note: you may also use none to show a transparent swatch with a checkerboard background.

    注意:您也可以使用 none 来显示具有棋盘背景的透明色板。

    Compatibility

    兼容性

    This ACF field type is compatible with:

    此ACF字段类型兼容:

      • ACF 4
      • ACF 4

      • ACF 5 (PRO version)
      • ACF 5(专业版)

安装步骤

    1. Make sure to have Advanced Custom Fields plugin installed.
    2. 确保已安装高级自定义字段插件。

    3. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
    4. 将插件文件上传到 / wp-content / plugins / plugin-name 目录,或直接通过WordPress插件屏幕安装插件。

    5. Activate the plugin through the ‘Plugins’ screen in WordPress
    6. 通过WordPress中的“插件”屏幕激活插件

    7. Use the plugin while creating custom fields
    8. 在创建自定义字段时使用插件

下载地址

https://downloads.wordpress.org/plugin/acf-color-swatches.zip

https://downloads.wordpress.org/plugin/acf-color-swatches.zip

-EOF-

AI助手支持GPT4.0