內容簡介
外掛主頁 | 外掛作者 | 捐贈
這個外掛讓你在選單編輯頁面上上傳選單項目的圖片。默認情況下,相應菜單項目的文字將顯示該圖片。請注意,在上傳後,你應該把圖片設為「特色圖片」,才能顯示它。
你還可以設置僅在懸停菜單項目時或當菜單項目為當前頁面時才顯示的圖片。 閱讀有關使用此外掛的詳細說明。
開發人員可以使用許多可用的過濾器來製作自己的圖像顯示方式,甚至可以在基礎類上創建子類。有更多的想法可以參考源代碼。
儘管此外掛可以立即顯示已上傳的圖片,但這可能不會提供最佳外觀,因此建議為受影響的元素創建自定義CSS樣式。
導航菜單圖像代碼部分基於已停用的插件 Custom Menu Images by Anabelle Handdoek
/∞manos s.a.s 和插件 Metronet Profile Picture by Ronald Huereca/Metronet Norge AS 的代碼。
外掛標籤
開發者團隊
原文外掛簡介
Plugin homepage | Plugin author | Donate
This plugin enables you to upload images for nav menu items on a menu edit screen. By default, those images will be displayed instead of text for respective menu items. Note that after upload, you should set an image as ‘featured’ to be able to display it.
You can also set images that will be displayed only when you hover menu item, or when menu item is of currently displayed page. Read detailed instructions about using plugin.
Developers can use many available filters to make their own way of displaying images, or even create a child class on top of base one. See source code for more ideas.
Although this plugin displays uploaded images out of the box, it will probably not give best possible look, so it’s recommended to create custom CSS styles for affected elements.
Nav Menu Images code is partly based on a code from now defunct plugin Custom Menu Images by Anabelle Handdoek
/∞manos s.a.s and a code from plugin Metronet Profile Picture by Ronald Huereca/Metronet Norge AS.
