[WordPress] 外掛分享: Safesprite Icons

首頁 › 外掛目錄 › Safesprite Icons
WordPress 外掛 Safesprite Icons 的封面圖片
全新外掛
安裝啟用
—
尚無評分
53 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.0 上架:2026-09-21

內容簡介

Safesprite Icons 是一個安全的 SVG 圖示庫,專為 WordPress 設計,能將使用過的圖示編譯成頁尾的 SVG 精靈圖,並以輕量級的 <use> 引用來渲染,避免在每個頁面上重複原始 SVG 標記。

【主要功能】
• 安全的 SVG 圖示庫,支持圖示集合
• 上傳自訂 SVG 圖示並進行檔案清理
• 共享圖示選擇器,支援多種編輯器
• Gutenberg 和 Elementor 的 SVG 圖示區塊
• 自動生成頁尾 SVG 精靈圖

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Safesprite Icons」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Safesprite Icons is a secure SVG icon library for WordPress that compiles used icons into a footer SVG spritesheet and renders them with lightweight references – so you reuse brand icons without duplicating raw SVG markup on every page.
Upload your own custom SVG icons, organize them in collections, sanitize every file on upload, and insert them with a shared icon picker in Gutenberg, Elementor, Classic Editor (TinyMCE), nav menus, shortcode, or PHP.
Why SVG sprites?

One spritesheet in the footer ( definitions) instead of repeating full SVG code
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 sprites + – not raw uploaded files as

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

延伸相關外掛

文章
Filter
Mastodon