這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Vihv Menu

描述

Adds menu icons, menu item css class, menu link XFN, menu item description and ability to open menu link in new window. All using default Appearance->Menus.

Icons will be displayed with default menu walker. If you use your own you can add images to menu with $output .= apply_filters( ‘walker_nav_menu_start_el’, $output, $item, $depth, $args ); or get icon url with get_post_meta($menu_item_id, ‘_vihv_menu_icon’, true); and display anywhere you want. Enjoy!

螢幕截圖

  • Screenshot

安裝

  1. Unzip vihv-menu folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題

I add icon urls to menu, but they are not displayed in frontend, how can I work around?

Most themes use custom menu walkers, instead of wp default Walker_Nav_Menu. And some of developers don’t call ‘walker_nav_menu_start_el’ filter. You need to find menu walker class in your theme code (search for files which contain ‘extends Walker_Nav_Menu’ and ‘extends Walker’) and add apply_filter rule at the end. See wp-includes/nav-menu-template.php as example. Alternatively you can use get_post_meta($menu_item_id, ‘_vihv_menu_icon’, true) to receive icon url inside menu walker code and use it as you want.

How can i ask a question?

You can send your questions to feedback@vihv.org.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Vihv Menu” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Vihv Menu 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.4

-icons are now visible in backend
-then icon path has no http:// at the beginning, first suggestion will be http://your.site/path/to/your/theme/path-you’ve-entered, if file won’t be found next suggestion will be http://your.site/path-you’ve-entered, so you can use shorter paths now

2.3

relative icon urls are now copatible with multilingual plugins like WPML

2.2

Alternate text for logo images