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

Mobile Navigation

外掛說明

Settings:

  • Mobile location
  • Mobile breakpoint
  • Background color
  • Text brightness
  • Logo as text or image
  • Logo and menu font family
  • Disable navigation, menu location, CSS, javascript
  • Hide on scroll, on or off
  • Custom CSS

If you don’t want the HTML to go through the action wp_footer, place this somewhere after the beginning of your body-tag: <?php do_action('mn_nav'); ?>. It might be better for readability and perhaps SEO.

螢幕擷圖

  • Closed mobile navigation
  • Open fullscreen mobile navigation
  • General settings
  • Logo settings
  • Advanced settings

安裝方式

  1. Upload mobile-navigation folder to the /wp-content/plugins/ directory, or use the plugin installer in wp-admin.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Options > Mobile Navigation and set your settings. Be sure to choose a menu that is not empty.

常見問題集

Does Mobile Navigation work with every theme?

No. Some themes has some strange CSS and javascript. If another mobile menu tries to be on top there might be a conflict.

Why not put more settings?

I try to keep the settings down. It should just be enough to adapt it to your site in terms of colors and fonts.

Why doesn’t it work?

Make sure you have the actions wp_head() and wp_footer() in your theme. If you have too large screen compared to the breakpoint in your settings the menu is not shown.

Why is the CSS generated as file?

It’s not a good practice to have CSS generated inline. You can disable the CSS if you prefer adding your own.

使用者評論

2016 年 9 月 3 日
I love the simplicity of this plugin. I don’t like the off-canvas style of navigation – it’s too weird for some of my clients. Like the options to change the font and add a logo. Suggestion: add some css to make the menu visible while logged in such as .logged-in .mn-navigation-wrap {margin: 46px 0 0 0;}
2016 年 9 月 3 日
The best plugin i’ve found but in a new update you could put a search box at right, left or at the top of menu, thank you.
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Mobile Navigation〉的開發相關工作。

參與者

將〈Mobile Navigation〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.5

  • CSS inline option – Use only if file and folders are not writable
  • If no breakpoint set, it will be set to 600px

1.4

  • Added warning when file not writable
  • Setting to set text dark or bright
  • Optional. Put directly after in your theme. Then the mobile menu HTML will be put there instead of the footer. Might be good for readability and perhaps SEO.

1.3

  • Bug fixes.

1.2

  • Initial release on wordpress.org

1.1

  • Many bugs fixed.

1.0

  • A not so public release.