[wordpress插件] Advanced Custom Fields: Typography Field高级自定义字段:版式字段

wordpress 插件 文章 2020-01-27 17:00 558 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

Typography field type for “Advanced Custom Fields” plugin that lets you add different text properties e.g.

“高级自定义字段”插件的版式字段类型,可让您添加其他文本属性,例如

Font Size, Font Family, Font Color etc.

字体大小,字体系列,字体颜色等。

Version 3.0.0 Introduces

版本3.0.0引入

    • Support for Google Fonts
    • 对Google字体的支持

    • The selected Google Fonts CSS is automatically enqueued on front-end of posts/pages
    • 所选的Google字体CSS自动排入帖子/页面的前端

    • Plugin functions and shortcode to fetch properties
    • 插件功能和获取属性的简码

Supported Subfields

支持的子字段

    • Font Size
    • 字体大小

    • Font Family
    • 字体家族

    • Font Weight
    • 字体重量

    • Font Style
    • 字体样式

    • Font Variant
    • 字体变体

    • Font Stretch
    • 字体拉伸

    • Line Height
    • 行高

    • Letter Spacing
    • 字母间距

    • Text Align
    • 文本对齐

    • Text Color
    • 文字颜色

    • Text Decoration
    • 文字装饰

    • Text Transform
    • 文本转换

    Other Features

    其他功能

      • Support for Google Fonts
      • 对Google字体的支持

      • The selected Google Fonts CSS is automatically enqueued on front-end of posts/pages
      • 所选的Google字体CSS自动排入帖子/页面的前端

      • Option to show/hide each subfield individually
      • 单独显示/隐藏每个子字段的选项

      • Option to make each subfield required individually
      • 可以单独设置每个子字段的选项

      • Color Picker for Text Color subfield
      • “文本颜色”子字段的颜色选择器

      Documentation

      文档

      // Returns the value of a specific property

        //返回特定属性的值

      get_typography_field( $selector, $property, [$post_id], [$format_value] );

      get_typography_field($ selector,$ property,[$ post_id],[$ format_value]);

      // Displays the value of a specific property

      //显示特定属性的值

      the_typography_field( $selector, $property, [$post_id], [$format_value] );

      the_typography_field($ selector,$ property,[$ post_id],[$ format_value]);

      // Returns the value of a specific property from a sub field.

      //从子字段返回特定属性的值。

      get_typography_sub_field( $selector, $property, [$format_value] );

      get_typography_sub_field($ selector,$ property,[$ format_value]);

      // Displays the value of a specific property from a sub field.

      //显示子字段中特定属性的值。

      the_typography_sub_field( $selector, $property, [$format_value] );

      the_typography_sub_field($ selector,$ property,[$ format_value]);

      Shortcode

      简码

      [acf_typography field="field-name" property="font_size" post_id="123" format_value="1"]

        [acf_typography field =“ field-name” property =“ font_size” post_id =“ 123” format_value =“ 1”]

      [Github repository](https://github.com/mujahidi/acf-typography)

      [Github存储库](https://github.com/mujahidi/acf-typography)

      Compatibility

      兼容性

      This ACF field type is compatible with:

      此ACF字段类型兼容:

      * Free and paid versions of the ACF plugin

      *免费和付费版本的ACF插件

安装步骤

    1. Copy the acf-typography-field folder into your wp-content/plugins folder
    2. acf-typography-field 文件夹复制到您的 wp-content / plugins 文件夹

    3. Activate the Typography plugin via the plugins admin page
    4. 通过插件管理页面激活排印插件

    5. Google API Key is required for Google Fonts.

    6. Google字体需要使用Google API密钥。

      Please add one by going to WordPress Admin Dashboard > Settings > ACF Typography Settings

    7. 请通过转到 WordPress Admin Dashboard> Settings> ACF Typography Settings 添加一个

    8. Create a new field via ACF and select the Typography type
    9. 通过ACF创建一个新字段并选择Typography类型

    10. Please refer to the description for more info regarding the field type settings
    11. 有关字段类型设置的更多信息,请参阅说明

下载地址

https://downloads.wordpress.org/plugin/acf-typography-field.zip

https://downloads.wordpress.org/plugin/acf-typography-field.zip

-EOF-

AI助手支持GPT4.0