matgargano/gutenberg-font-family

Gutenberg Font Family

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Language:JavaScript

Type:wordpress-plugin

pkg:composer/matgargano/gutenberg-font-family

0.0.1 2026-01-03 18:51 UTC

This package is auto-updated.

Last update: 2026-01-03 18:54:12 UTC


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