Linux 软件免费装
Banner图

SVG Icon Block

开发者 gkits
binsaifullah
更新时间 2026年11月14日 15:11
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

gutenberg font awesome icon block svg icon svg upload

下载

1.2.1 1.0.0 1.0.2 1.0.3 1.0.4 1.0.6 1.0.1 1.0.5 1.1.0 1.2.0

详情介绍:

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 [youtube http://www.youtube.com/watch?v=K7iUgJU42GI] Three ways to add an icon Features 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

安装:

  1. In your WordPress dashboard, go to Plugins → Add New and search for "SVG Icon Block".
  2. Click Install Now, then Activate.
  3. Open the block editor, click the + inserter and add the SVG Icon block.
  4. Choose an icon from the Icon Library, paste custom SVG code, or upload an SVG file.
To install manually, upload the svg-icon-block folder to /wp-content/plugins/ and activate it from the Plugins screen.

常见问题:

How do I add an SVG icon in the WordPress block editor?

Add the SVG Icon block from the inserter, then pick an icon from the Icon Library, paste SVG code with Custom SVG, or upload an .svg file. Use the block sidebar to change size, color and other styles.

Does this plugin load Font Awesome on the front end?

No. Each icon is saved as inline SVG markup, so no icon font, CSS file or JavaScript from Font Awesome is loaded on your site's front end.

Can I upload my own SVG icons?

Yes. You can upload .svg files to the Media Library, drop them into the editor, or paste SVG code directly. Turn on Add to My Icons to save an icon for reuse.

Is it safe to allow SVG uploads?

The plugin sanitizes every SVG with an allow-list before it is saved. Scripts, event handlers, unsafe links and external references are removed, so a malicious file can't run code on your site.

Can Authors and Contributors use the block?

Yes. Icons display correctly for users without the unfiltered_html capability, including on Multisite networks.

Can I link an icon?

Yes. Add a URL in the block settings and choose whether it opens in a new tab or uses nofollow or sponsored. For icon-only links, add alternative text so screen readers can announce the link.

Can I change the icon color on hover?

Yes. The block has separate normal and hover colors for the icon fill, stroke, label and background.

Does it work with Full Site Editing and block themes?

Yes. You can use the SVG Icon block in posts, pages, templates, template parts and patterns.

更新日志:

1.2.1 1.2.0 1.1.0 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0