跳到内容

SVG Icon Block

v1.2.1

Binsaifullah · 2024年10月3日 上架

Add SVG icons to the WordPress block editor: 1,800+ Font Awesome icons, custom SVG code, safe SVG uploads and a reusable icon library.

正在使用
1,000+
评分
暂无
累计下载
1.1 万
最近更新
2026年11月14日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

截图

Font Awesome icon library with search inside the SVG Icon block.
Font Awesome icon library with search inside the SVG Icon block.

SVG Icon Block is a lightweight Gutenberg block for adding SVG icons anywhere in the WordPress block editor. Pick from more than 1,800 Font Awesome icons, paste your own SVG code, or upload an SVG file. Then style the icon with size, color, background, border, rotation and flip controls.

Icons are output as inline SVG markup, not an icon font. Your pages don’t load an extra font file or stylesheet, icons stay sharp on every screen, and the Font Awesome data loads in the editor only when you open the icon library.

Video Tutorial

Three ways to add an icon

  • Icon Library – search 1,800+ Font Awesome Free icons (Solid, Regular and Brands) and insert one with a click.
  • Custom SVG – paste SVG code from Figma, Illustrator, Inkscape or any icon set. The markup is validated and previewed on light, dark and transparent backgrounds.
  • Upload SVG – upload an .svg file to the Media Library, or drop it straight into the editor. SVG uploads are enabled safely, with every file sanitized.

Features

  • 1,800+ Font Awesome SVG icons (Solid, Regular and Brands)
  • Custom SVG code with live preview and markup validation
  • Safe SVG upload support for the Media Library
  • My Icons – save your own SVG icons once and reuse them in any post or page
  • Icon size, fill, stroke and hover colors, background, padding, border and border radius
  • Responsive size, spacing and alignment for desktop, tablet and mobile
  • Rotate and flip icons horizontally or vertically
  • Optional text label next to the icon, with typography controls
  • Link an icon to any URL, with new tab, nofollow and sponsored options
  • Accessible: alternative text for icons, plus a warning when an icon-only link has no accessible name
  • Additional CSS class and HTML anchor support
  • Works with block themes, classic themes and Full Site Editing
  • Lightweight with no third-party dependencies, and only the SVG markup is rendered

My Icons: a reusable SVG icon library

Paste your SVG code in the Custom SVG window, turn on Add to My Icons, give it a label, and the icon is saved to your site. A My Icons button then appears in the block placeholder, so you can insert that icon in any post or page without pasting the code again.

The library is shared by everyone on the site who can edit posts. A logo or brand icon saved by one author is available to the whole team. You can search and remove saved icons from the same window.

Secure SVG support

SVG files can contain scripts, so WordPress blocks SVG uploads by default. SVG Icon Block enables them safely: every uploaded file, pasted SVG code and saved icon goes through an allow-list sanitizer that removes scripts, event handlers, unsafe links and external references before anything is stored.

Use cases

  • Feature lists and service boxes with icons
  • Social media icons and brand logos
  • Icon buttons and call-to-action links
  • Contact details with phone, email and map icons
  • Custom illustrations and logos as scalable SVG

Plums

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

导航

说明

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

© 2026 Plums