定制 matgargano/gutenberg-font-family 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

matgargano/gutenberg-font-family

最新稳定版本:0.0.1

Composer 安装命令:

composer require matgargano/gutenberg-font-family

包简介

Gutenberg Font Family

README 文档

README

A WordPress plugin that adds a Font Family dropdown to Gutenberg blocks.

Description

This plugin adds a toolbar dropdown to select font families on supported Gutenberg blocks. When selected, a CSS class is applied to the block for styling.

Supported Blocks

  • Paragraph
  • Heading
  • List
  • Quote
  • Pullquote

Installation

  1. Upload the gutenberg-font-family folder to /wp-content/plugins/
  2. Activate the plugin through the WordPress admin
  3. Edit any page/post and select a supported block to see the Font dropdown in the toolbar

Usage

  1. Edit a page or post in Gutenberg
  2. Select a paragraph, heading, list, quote, or pullquote block
  3. Click the "Font" dropdown in the block toolbar
  4. Select a font family option

Customization

Filter the available font options using the gutenberg_font_family_options filter:

add_filter('gutenberg_font_family_options', function ($options) {
    return array(
        'font-heading' => 'Heading',
        'font-body'    => 'Body',
        'font-custom'  => 'Custom Font',
    );
});

The array keys are CSS class names applied to the block, and values are the labels shown in the dropdown.

Version

0.0.1

License

GPL-2.0-or-later

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-03