內容簡介
Safesprite Icons 是一個安全的 SVG 圖示庫,專為 WordPress 設計,能將使用過的圖示編譯成頁尾的 SVG 精靈圖,並以輕量級的 <use> 引用來渲染,避免在每個頁面上重複原始 SVG 標記。
【主要功能】
• 安全的 SVG 圖示庫,支持圖示集合
• 上傳自訂 SVG 圖示並進行檔案清理
• 共享圖示選擇器,支援多種編輯器
• Gutenberg 和 Elementor 的 SVG 圖示區塊
• 自動生成頁尾 SVG 精靈圖
外掛標籤
開發者團隊
原文外掛簡介
Safesprite Icons is a secure SVG icon library for WordPress that compiles used icons into a footer SVG spritesheet and renders them with lightweight
One spritesheet in the footer (
Body output stays small:
Better for performance when the same icons appear many times (menus, cards, loops)
Site-owned assets only – no remote icon CDNs in v1
Security first
SVG uploads are accepted only through the plugin Icon Library
This plugin does not enable SVG uploads in the WordPress Media Library (it is not a “Safe SVG / SVG Support” Media Library plugin)
Uploads are sanitized with the vendored enshrined/svg-sanitize library (GPL-2.0-or-later), shipped inside the plugin
Front-end output uses sanitized
Features
Secure SVG icon library with collections (folders)
Rename icon titles and collection names (slugs stay stable for shortcodes/blocks)
Trash / restore / permanent delete
Shared icon picker across editors
Gutenberg SVG icon block (size + color controls)
Elementor SVG icon widget (loads only when Elementor is active)
TinyMCE button
Shortcode: [sfsi_icon slug="my-icon"]
PHP helper: sfsi_icon( 'my-icon' )
Nav menu item icons
Automatic footer SVG spritesheet compiler
For developers
Shortcode: [sfsi_icon slug="my-icon"]
PHP helper: sfsi_icon( 'my-icon' ) in themes or plugins
Settings hooks: sfsi_register_settings_fields (action), sfsi_sanitize_settings (filter)
Who is this for?
Sites that need brand icons and custom SVGs without opening Media Library SVG uploads
Developers who want SVG sprite / spritesheet rendering instead of heavy inline SVG bloat
Teams using Gutenberg and/or Elementor with one shared library
