內容簡介
Enable Navigation Icons 外掛讓您輕鬆為 WordPress 的導航區塊項目添加和自訂圖示。無論是簡單的菜單還是複雜的 Mega 菜單,這個外掛提供直觀的控制,幫助您為導航連結添加美觀的圖示。
【主要功能】
• 瀏覽和選擇 WordPress 圖示集
• 上傳自訂 SVG 圖示或直接粘貼 SVG 代碼
• 調整圖示與文字的間距和位置
• 設定導航區塊的預設圖示樣式
• 完全支援 Ollie Menu Designer 的 Mega 菜單
外掛標籤
開發者團隊
原文外掛簡介
Enable Navigation Icons makes it simple to add and customize icons for your WordPress Navigation Block items. Whether you’re building a simple menu or complex mega menu navigation, this plugin provides intuitive controls for adding beautiful icons to your navigation links.
Try it in WordPress Playground — test the plugin instantly in your browser, no installation required.
Recommended Companion Plugin: Use the Icon Block plugin to add custom icon sets and expand your icon library options. Icon Block is a powerful companion that allows you to register additional icon libraries for use with Enable Navigation Icons.
Key Features
Icon Selection
* Browse and select from a curated collection of WordPress icons
* Upload and use custom SVG icons from your media library
* Paste custom SVG code directly for complete flexibility
Icon Positioning
* Position icons before or after navigation link text (left/right)
* Space between justification for full-width layouts
* Vertical alignment options (top, center, bottom) for multi-line menu items
* Fine-tune icon position with vertical offset (supports px, %, em, rem units)
Icon Styling
* Adjust icon dimensions with a slider control (supports px, em, rem units)
* Control the gap between icon and text (supports px, em, rem units)
* Choose from theme colors or set a custom color
* Support for stroke-based icons with “No Fill” option (e.g., Lucide icons)
Navigation Block Default Settings
Set default icon settings at the Navigation block level that apply to all child navigation items:
* Configure size, spacing, color, position, vertical alignment, offset, and styling once for the entire navigation
* Individual navigation items can inherit defaults or use custom settings
* Works seamlessly with multiple and nested Navigation blocks
* Applies to both inline navigation items and dynamically loaded WordPress menus
This feature streamlines icon management for large navigation menus by eliminating repetitive configuration while maintaining flexibility for individual items.
Ollie Menu Designer Integration
Full support for the Ollie Menu Designer plugin’s mega menu dropdown items:
* Add icons to Ollie mega menu dropdown navigation items
* Same icon selection and styling options as standard navigation items
* Works seamlessly with Ollie themes and the Menu Designer plugin
Supported Blocks
core/navigation – Navigation block (for setting default icon settings)
core/navigation-link – Standard navigation links
core/navigation-submenu – Submenu/dropdown navigation items
ollie/mega-menu – Ollie Menu Designer dropdown menu items (requires Ollie Menu Designer plugin)
Credits
This plugin was inspired by and incorporates code and ideas from the enable-button-icons project. Special thanks to @ndiego for his excellent work on button icon functionality, which served as a foundation for implementing navigation icon features.
