跳到内容

Hero Color Picker

v1.0.20

Marc Tönsing · 2026年3月9日 上架

Hero Color Picker adds per-post color selection in the editor sidebar for hero styling via CSS.

正在使用
10 以下
评分
暂无
累计下载
881
最近更新
2026年5月17日
需要 WordPress 5.9+已测试到 7.0.9PHP 7.3+

贡献者

截图

Hero Color Picker sidebar panel with background color, font color, live preview, and WCAG status.
Hero Color Picker sidebar panel with background color, font color, live preview, and WCAG status.

Hero Color Picker adds per-post background and font color controls to the editor sidebar for hero styling via CSS on elements with the hero-colored class.

Features:
– Two color controls: Background Color and Font Color
– On-demand color pickers in compact dropdown popovers
– Live preview of both colors together directly in the sidebar
– Applies selected colors to the editor post summary area for a closer backend preview
– Removes the featured image preview outline while a custom background color is active
– Accessibility check for WCAG AAA Normal Text with PASS / FAILED status
– Panel is shown only while editing posts (post), not in template editing contexts
– Adds a core-like posts list view Hero Background to show only posts with a custom hero background color
– Works on elements that have the CSS class hero-colored

Stored as post meta:
– hero_color_picker_hero_color
– hero_color_picker_font_color

Frontend output (only when values are set):

.hero-colored {
    background-color: $background;
    color: $font;
}

.hero-colored a {
    color: $font;
}

Important template setup:
– Open your block theme template (for example Single) in the Site Editor.
– Select the Group block that should receive the hero styles.
– In block settings, add hero-colored to Additional CSS class(es).

Plums

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

导航

说明

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

© 2026 Plums