跳到内容

Advanced Custom Fields: Typography Field

v3.3.0

Mujahid Ishtiaq · 2016年10月17日 上架

A Typography Add-on for the Advanced Custom Fields Plugin.

正在使用
3,000+
评分
4.6 / 5
累计下载
4.5 万
最近更新
2026年10月5日
5 条评价需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+

截图

Typography Field Settings
Typography Field Settings
Typography Field Content Editing
Typography Field Content Editing
Google Key Field required for Google Fonts
Google Key Field required for Google Fonts

Typography field type for “Advanced Custom Fields” plugin that lets you add different text properties e.g. Font Size, Font Family, Font Color etc.

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

  • Supports Google Fonts. The selected Google Fonts are automatically enqueued on front-end of posts/pages. Google Fonts also work with ACF Options.
  • Supports Gutenberg Blocks created with ACF.
  • 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] );

// Displays the value of a specific property
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] );

// Displays the value of a specific property from a sub field.
the_typography_sub_field( $selector, $property, [$format_value] );

Shortcode

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

The shortcode only reads Typography fields.

Github repository

@mujahidi/acf-typography

Compatibility

This ACF field type is compatible with:
* Free and paid versions of the ACF plugin

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums