WP Manifestindependent plugin directory
manifest / editor / we-icon-blocks

WE Icon Blocks

Experimentel

by webentwicklerin, Gabriele Laesser · github.com/gbyat/we-icon-blocks · website

0stars
74release downloads
0forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/gbyat/we-icon-blocks/releases/download/v0.2.21/we-icon-blocks.zip

Readme

WE Icon Blocks

Contributors: webentwicklerin
Tags: icons, animations, gutenberg, block-editor, svg
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 0.2.21
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WE Icon Blocks adds a flexible icon block for the WordPress Block Editor (Gutenberg).

Description

It is designed as a small, focused plugin that provides a reusable SVG icon set with fine‑grained control over layout, colors, borders and animations.

Features

  • Icon block for Gutenberg: Insert icons anywhere in your content or navigation menus.
  • SVG icon library: Icons are rendered as SVGs for crisp display on all resolutions.
  • Layout options: Icon left/right/top/bottom in relation to text (default: above text), configurable gap.
  • Icon styling: Separate control for icon color, background, border (width, style, color, radius) and inner padding.
  • Background frame (optional): Add a decorative frame layer behind the icon — from upload (image/SVG), from the icon library (any built‑in icon as frame), or paste custom SVG (experts). Frame color and hover color are independent of the icon; uploaded SVGs are inlined and recolorable via CSS.
  • Wrapper styling: Uses native WordPress block supports for border, spacing and typography on the wrapper.
  • Animations: Presets (float up, pulse, bounce, rotate, shake) with duration (fast/medium/slow), repeat (once/loop) and trigger (always/on hover). Respects prefers-reduced-motion.
  • Accessibility: Focus-visible outline on links, optional screen‑reader‑only text, sensible aria-label for icon-only links.
  • Update system: GitHub‑based updates via the built‑in updater class.

Installation

  • Download the latest release ZIP from the GitHub releases page.
  • In your WordPress admin go to Plugins → Add New → Upload Plugin and upload the ZIP.
  • Activate WE Icon Blocks.

Usage

  • In the block editor, search for “Icon” (WE Icon Blocks) and insert the block.
  • Choose an icon from the library via the block sidebar.
  • Configure:
    • Colors for icon and background (and optional border colors).
    • Icon border (width, style, color, radius) and icon padding (inner spacing).
    • Text and icon position (left/right/above/below text; default: above). Option “Text for screen readers only” hides the label visually but keeps it for assistive tech.
    • Link URL and “Open in new window” if the icon/text should be clickable.
    • Background frame (optional): choose “Upload image/SVG” or “Icon library SVG”, set frame fit and padding, and frame color / frame hover color (SVG only). Users with unfiltered_html can enable “Advanced SVG code” to paste custom frame SVG.
    • Animation type, duration (fast/medium/slow), repeat (once/loop) and trigger (always or on hover).

Development

Clone the repository and install dependencies:

npm install

Build the assets once:

npm run build

For development with file‑watching:

npm run dev

Internationalisation

  • PHP and JavaScript strings use the we-icon-blocks text domain.
  • POT file generation:
npm run pot
  • PO → JED JSON und Hash‑Generierung (für Block‑Editor‑Übersetzungen):
npm run po-to-jed
npm run hash-json

Releases & Versioning

  • This plugin follows semantic versioning (MAJOR.MINOR.PATCH).
  • The script scripts/sync-version.js keeps the plugin header, block.json files, CHANGELOG.md and the Stable tag in this README.md in sync with the version from package.json.
  • Release helpers:
npm run release:patch
npm run release:minor
npm run release:major

GitHub Actions builds the release ZIP and attaches it to the corresponding GitHub Release, which is then used by the built‑in updater.

Testing with WordPress Playground

You can test this plugin in WordPress Playground without installing it locally or in a WordPress repository.

🚀 Test in WordPress Playground (v0.2.5) — Opens WordPress Playground with the latest release pre-installed and activated.

Quick preview (latest release):

npm run playground

This generates a Playground URL that opens WordPress with the plugin pre-installed from the latest GitHub release.

Specific version:

node scripts/generate-playground-url.js 0.2.3

Using a Blueprint:

You can also use the playground-blueprint.json file directly:

  1. Host the blueprint file (e.g., via GitHub Gist or your own server).
  2. Open: https://playground.wordpress.net/?blueprint-url=<your-blueprint-url>

The blueprint automatically:

  • Installs the plugin from the GitHub release
  • Activates it
  • Navigates to the plugins page

Note: The plugin must be released on GitHub (via npm run release:*) for the Playground URLs to work, as they reference the release ZIP files.

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
v0.2.21 Jun 29, 2026 we-icon-blocks.zip 1
v0.2.20 Jun 29, 2026 we-icon-blocks.zip 0
v0.2.19 Feb 25, 2026 we-icon-blocks.zip 1
v0.2.18 Jan 25, 2026 we-icon-blocks.zip 2
v0.2.17 Jan 3, 2026 we-icon-blocks.zip 11
v0.2.16 Jan 3, 2026 we-icon-blocks.zip 3
v0.2.15 Jan 3, 2026 we-icon-blocks.zip 5
v0.2.14 Jan 3, 2026 we-icon-blocks.zip 5
v0.2.12 Jan 3, 2026 we-icon-blocks.zip 5
v0.2.11 Jan 3, 2026 we-icon-blocks.zip 5
v0.2.10 Jan 3, 2026 we-icon-blocks.zip 2
v0.2.9 Jan 3, 2026 we-icon-blocks.zip 3
v0.2.8 Jan 3, 2026 we-icon-blocks.zip 5
v0.2.7 Jan 3, 2026 we-icon-blocks.zip 1
v0.2.6 Jan 3, 2026 we-icon-blocks.zip 1
v0.2.5 Jan 3, 2026 we-icon-blocks.zip 5
v0.2.4 Jan 3, 2026 we-icon-blocks.zip 3
v0.2.3 Dec 15, 2025 we-icon-blocks.zip 1
v0.2.2 Dec 3, 2025 we-icon-blocks.zip 3
v0.2.1 Dec 3, 2025 we-icon-blocks.zip 0
v0.2.0 Dec 2, 2025 we-icon-blocks.zip 2
v0.1.4 Nov 27, 2025 we-icon-blocks.zip 3
v0.1.3 Nov 27, 2025 we-icon-blocks.zip 3
v0.1.2 Nov 26, 2025 we-icon-blocks.zip 4