內容簡介
LJ Custom Menu Links 是一款外掛,允許您在大多數 WordPress 主題的菜單中添加額外的連結。它獨特之處在於,它不需要對您的主題進行任何代碼更改,因為額外的連結是在 WordPress 核心功能內添加的。這個外掛需要管理的技術知識,一切都包含在 WordPress 管理頁面中,使用起來非常方便,外觀一致。
功能:
為您的主題添加額外的菜單連結
使用頁面作為菜單連結的占位符(這允許您完全自定義連結的位置)
根據用戶是否已登錄來控制是否顯示菜單項目
如果用戶已經登錄,顯示登出連結
提供只有在用戶已經登錄時才能提供指向您的管理頁面的連結的能力
完整的菜單排序功能
您現在可以完全掌控 LJ Custom Menu Links 的運作方式,自動完全集成或手動集成(修改您的主題以符合 LJ Custom Menu Links)。
如果您與 LJ Custom Menu Links 輸出連結到其他插件或側邊欄小工具存在兼容性問題,那麼此更新適用於您。目前,由於 WordPress 核心限制,如果您使用 LJ Custom Menu Links,可能會與其他插件存在兼容性問題。您現在有選擇(通過高級選項頁面)關閉“使用 wp_list_pages Filter”選項,並插入所需的代碼,以使 LJ Custom Menu Links 在您自己的主題中不受干擾地運行。
要添加靈活的位置鏈接(動態鏈接),您需要創建一個新頁面作為該鏈接的占位符,在編輯頁面菜單下面是一個框,以控制顯示哪個鏈接。請參閱下一頁上的屏幕截圖進行描述。以這種方式創建的鏈接沒有選擇目標窗口的功能(您仍然可以通過頁面設置的私人或公共可見性以及基於頁面設置的排序方式來控制鏈接的可見性)。
管理頁面現在還包含動態鏈接列表,可以從 LJCustomMenuLinks 管理區域中刪除或編輯。
要添加 LJCustomMenuLinks,請使用管理區中的 LJCustomMenuLinks 項目,這些鏈接添加到 WordPress 標准菜單系統的末尾,但具有完全自定義能力。
該插件還添加了一個歸屬功能。如果要為該插件提供歸屬,請將以下代碼添加到您的 WordPress 主題中。頁腳是一個好的位置。
<?php
if (function_exists('LJCustomMenuLinksAttribution')) {
LJCustomMenuLinksAttribution();
}
?>
外掛標籤
開發者團隊
原文外掛簡介
LJ Custom Menu Links is a plugin that allows you to put extra links in the menus of most WordPress Themes. It is unique in the way that it doesn’t require any code changes to your theme as the extra links are added within WordPress core functionality. This plugin requires no technical knowledge to administer, it is all contained within the WordPress admin pages with a consistent look and feel for ease of use.
Functions:
Add Extra Menu links to your theme
Use pages as placeholders for menu links (This allows you full customization as to the location of your links)
Control if menus items are shown based on if a user is logged in
Shows a logout link if a user is logged in
Provides the ability to provide a link back to your admin pages only if a user is logged in
Full menu sorting available
You can now take full control of how you want Custom Menu Links to operate, fully automatic integration or manual integration (modifying your theme for LJ Custom Menu Links).
If you are having compatibility issues with LJ Custom Menu Links outputting its links inside other plugins or sidebar widgets then this update is for you. Currently due to core wordpress limitations, if you use LJ Custom Menu Links there may be compatibility issues with other plugins. You now have the option (via the Advanced Options page) to turn off Use wp_list_pages Filter option and insert the required code to make LJ Custom Menu Links work without interruption within your own theme.
To add flexible location links (Dynamic Links) you need to create a new page as a placeholder for that link, under the edit page menu is a box to control what link to show. Please see the screenshots on the next page for a description. Links created in this way don’t have the ability to choose the target window (you may still control the visibility of the link via the private or public based on the page settings, and also the ordering based on page settings).
The admin page now also contains a list of Dynamic Links, which can be deleted or edited from within the LJCustomMenuLinks admin section.
To add LJCustomMenuLinks please use the LJCustomMenuLinks item in the Admin section, these links are added to the end of the standard wordpress menu system but have full customization ability.
The plugin has also had an attribution function added. If you would like to provide attribution for the plugin then add the following code into your wordpress theme. The footer is a good place for it.
