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

DMG Custom Menu Widget

描述

Displays a menu created on the ‘Appearance > Menus’ page as a list of links.

Includes advanced options to add CSS styles, modify the title and add HTML/ Text before and after each link.

Replaces the built in Menus Widget (WP_Nav_Menu_Widget).

A hook is available to filter the title: dmg_custom_menu_widget_title.

For example, to change the title on a single page or post, you could add this to your functions.php file:

function myTitleFilter( $title )
{
    if( is_singular() )
    {
        return "<strong>$title</strong>";
    }
    else
    {
        return $title;      
    }
}
add_filter( 'dmg_related_pages_widget_title' , 'myTitleFilter');

More information about this plugin can be found at http://dancoded.com/wordpress-plugins/custom-menu-widget/.

螢幕截圖

安裝

  1. Upload the plugin files to the /wp-content/plugins/dmg-custom-menu-widget directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ page in the WordPress admin area
  3. Drag onto any active sidebar on the ‘Appearance > Widgets’ page

評價

There are no reviews for this plugin.

貢獻者及開發者

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

貢獻者

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

對開發相關資訊感興趣?

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

修改日誌

1.0

  • Initial version