Title: Responsive Navigation Block
Author: David Smith
Published: <strong>2024 年 10 月 4 日</strong>
Last modified: 2025 年 9 月 27 日

---

搜尋外掛

![](https://ps.w.org/getdave-responsive-navigation-block/assets/banner-772x250.png?
rev=3162655)

![](https://ps.w.org/getdave-responsive-navigation-block/assets/icon-256x256.png?
rev=3162655)

# Responsive Navigation Block

 由 [David Smith](https://profiles.wordpress.org/get_dave/) 開發

[下載](https://downloads.wordpress.org/plugin/getdave-responsive-navigation-block.1.0.10.zip)

[即時預覽](https://tw.wordpress.org/plugins/getdave-responsive-navigation-block/?preview=1)

 * [詳細資料](https://tw.wordpress.org/plugins/getdave-responsive-navigation-block/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/getdave-responsive-navigation-block/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/getdave-responsive-navigation-block/#developers)

 [技術支援](https://wordpress.org/support/plugin/getdave-responsive-navigation-block/)

## 外掛說明

This Plugin allows you to display and apply alternative styling to different navigation
menus based on the screen size using the WordPress Navigation block.

###  Video Walkthrough

### Features

 * Two new Navigation Block (variations) for:
    - Mobile
    - Desktop
 * Style your menu differently depending on screen size.
 * Use a different menu for each screen size.
 * Customize the “breakpoint” (where you switch between mobile and desktop).
 * Automatically switch editor to “mobile” preview when editing the mobile navigation.

### Usage

This Plugin creates two block variations from the Navigation block which will be**
automatically hidden/shown at the configured screensize** (breakpoint):

 * Navigation (Mobile) – will be displayed only on smaller screen sizes.
 * Navigation (Desktop) – will be displayed only on larger screen sizes.

This affords the ability to **independently style mobile vs desktop navigation**
and even allows for **completely different menus** to be used.

The Plugin should be used as follows:

 * Install and Activate the plugin – two new block variations will be automatically
   registered for “Mobile” and “Desktop”.
 * Go to the Editor and remove any existing Navigation block.
 * Add the “Desktop Navigation” block – style and configure the menu for “desktop”
   as required.
 * Add the “Mobile Navigation” block – style and configure the menu for “mobile”
   as required.
 * View the front of your website and resize your browser to see the navigations
   swap out at the appropriate breakpoint/screensize.

Alternatively you can transform the default Navigation block to either `Mobile` 
or `Desktop` variations via the block’s interface.

### Support

Please see FAQs. If you still have an issue please:

 * check [Github for existing Issue reports](https://github.com/getdave/responsive-navigation-block/issues).
 * (if none) then file a new Issue on Github

### Privacy Statement

Responsive Navigation does _not_:

 * use cookies.
 * send data to any third party.
 * include any third party resources.

### Contributing

Contributions to this Plugin are welcome. Please fork the Github repository and 
submit a PR for review.

### Development Setup

This Plugin uses the [@wordpress/scripts package](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/).

 * Check out the Github repo into the `wp-content/plugins` directory of a WordPress
   installation.
 * `cd` into the Plugin’s directory install the dependencies with `npm i`.
 * Running `npm start` will start the `@wordpress/scripts` package in watch mode
   ready to compile the JavaScript on modification.
 * PHP files can be edited in the usual manner.

### Testing

The Plugin has e2e test coverage for the key features courtesey of @wordpress/scripts
and Playwright.

To run the tests – in your terminal of choice:

 * `npm run build`.
 * `npm run wp-env start`.
 * Run the tests: `npm run test:e2e`

### Releasing

Releasing the Plugin to the WordPress.org Plugin repo is the prerogative of the 
Plugin owner (@get_dave). The process is as follows:

#### Test the Plugin

 * Commit all changes to `trunk` branch.
 * Push changes to `trunk` (only) – `git push origin trunk`.
 * In Github:
    - Actions
    - Select the [`Build Release Zip` action](https://github.com/getdave/responsive-navigation-block/actions/workflows/build-release-zip.yml).
    - Select the `Run workflow` dropdown and run the workflow to generate a zip 
      file.
    - When action completes download the generated Plugin zip artifact.
    - Manually install and test the .zip.

#### Deploy to WP.org

 * When ready to deploy.
 * Bump Plugin version and tag release – `npm run bump-version`.
 * Push trunk and tags – `git push origin trunk --tags`
 * Deployment to WP.org will be handled automatically.

## 螢幕擷圖

[[

[[

[[

## 常見問題集

### Why is this plugin necessary?

The built in WordPress Navigation block provides limited control over its display
on smaller screens. Whilst [efforts are underway to implement solutions to this natively within WordPress](https://github.com/WordPress/gutenberg/issues/43852#issuecomment-1884949063)
they are currently still in development.

Until a solution arrives in WordPress Core, this Plugin exists to provide a workaround
solution that requires minimal user configuration.

This Plugin was based upon a technique which I originally documented in my [YouTube Video: Use a different MENU on MOBILE with the Navigation block in WORDPRESS block editor](https://www.youtube.com/watch?v=dY3f8sHcAPA).

### Can I adjust the breakpoint?

By default, the “breakpoint” at which the mobile navigation will switch to show 
the desktop navigation is `782px`. This aligns with the default configuration of
the built in WordPress Navigation block. To change this you can:

 * Go to the WP Admin Dashboard.
 * Go to `Settings -> Responsive Navigation`.
 * Configure the breakpoint value and the required unit. Save.
 * The breakpoint will be adjusted to match your new configuration.

Note that you can use relative units such as `em`, `rem` and `vw`.

### Styling of my mobile menu doesn’t work

Due to complications with the way the default WordPress Navigation block works you
are advised to use the following settings to control the styling of your mobile 
navigation:

 * Mobile overlay
    - background color – `Styles -> Color -> Submenu & overlay background`.
    - text color – `Styles -> Color -> Submenu & overlay text`.
 * Mobile menu toggle button (“hamburger”):
    - icon color – `Styles -> Color -> Text`.
    - background color – `Styles -> Color -> Background`.

Styles for Desktop Navigation can be applied using the standard controls.

## 使用者評論

![](https://secure.gravatar.com/avatar/896ca08d774e62b086c6e6031cb10d3bc540df6a328970977bef4e4b776d0c3c?
s=60&d=retro&r=g)

### 󠀁[Responsive thanks!](https://wordpress.org/support/topic/responsive-thanks/)󠁿

 [evelec](https://profiles.wordpress.org/evelec/) 2026 年 3 月 17 日

Many thanks for your good plugin!

![](https://secure.gravatar.com/avatar/1d90bf40066c185fe397496f2d5093440a4e5b60f7b08a1aee14df1087c693a2?
s=60&d=retro&r=g)

### 󠀁[Should be native!](https://wordpress.org/support/topic/should-be-native-2/)󠁿

 [Yan](https://profiles.wordpress.org/yankiara/) 2025 年 12 月 9 日

Great plugin, which definitely should be part of WP core. I can’t understand that
WP still doesn’t ship with a proper mobile menu. Are we living in the 80’s???

![](https://secure.gravatar.com/avatar/b55ba3ec3439b6ff495221588f1a2bfc46ca2c4ff2839bbd5df42e789ad4e61b?
s=60&d=retro&r=g)

### 󠀁[Super useful](https://wordpress.org/support/topic/super-useful-225/)󠁿

 [Display Only](https://profiles.wordpress.org/ftk124/) 2025 年 10 月 24 日

Super useful menu navigation for different device, I am always struggle

![](https://secure.gravatar.com/avatar/5a852154b2d98220cfd51d401d24b464a227079afeee6d51b15c0709b027b783?
s=60&d=retro&r=g)

### 󠀁[Solved an ongoing WordPress navigation block issue](https://wordpress.org/support/topic/solved-an-ongoing-wordpress-navigation-block-issue/)󠁿

 [ManellyC](https://profiles.wordpress.org/manellyc/) 2025 年 4 月 30 日

I appreciate the work @DaveOnWP put into the Responsive Navigation Block plugin.
I wanted the Mobile Navigation to be a little different than the Desktop Navigation
and tried several plugins to make it happen. They were all rather frustrating. Then
I tried Responsive Navigation Bock. So happy. Everything is working beautifully.

![](https://secure.gravatar.com/avatar/de86c6b1fbf06589812d260f883f390ad8d62cbc41a4535578171c8cf644d663?
s=60&d=retro&r=g)

### 󠀁[Such a needed feature, thank you!](https://wordpress.org/support/topic/such-a-needed-feature-thank-you/)󠁿

 [Maggie Cabrera](https://profiles.wordpress.org/onemaggie/) 2024 年 10 月 10 日

Thanks for providing a solution to this common problem, it is very helpful

 [ 閱讀全部 5 則使用者評論 ](https://wordpress.org/support/plugin/getdave-responsive-navigation-block/reviews/)

## 參與者及開發者

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

參與者

 *   [ David Smith ](https://profiles.wordpress.org/get_dave/)

〈Responsive Navigation Block〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/getdave-responsive-navigation-block/contributors)
為這個外掛做出的貢獻。

[將〈Responsive Navigation Block〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/getdave-responsive-navigation-block)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/getdave-responsive-navigation-block/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/getdave-responsive-navigation-block/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/getdave-responsive-navigation-block/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/getdave-responsive-navigation-block/)。

## 中繼資料

 *  版本 **1.0.10**
 *  最後更新 **9 個月前**
 *  啟用安裝數 **1,000+**
 *  WordPress 版本需求 ** 6.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  語言
 * [English (US)](https://wordpress.org/plugins/getdave-responsive-navigation-block/)
   及 [Vietnamese](https://vi.wordpress.org/plugins/getdave-responsive-navigation-block/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/getdave-responsive-navigation-block)
 * 標籤:
 * [blocks](https://tw.wordpress.org/plugins/tags/blocks/)[menus](https://tw.wordpress.org/plugins/tags/menus/)
   [mobile](https://tw.wordpress.org/plugins/tags/mobile/)[navigation](https://tw.wordpress.org/plugins/tags/navigation/)
   [responsive](https://tw.wordpress.org/plugins/tags/responsive/)
 *  [進階檢視](https://tw.wordpress.org/plugins/getdave-responsive-navigation-block/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  5 個 5 星使用者評論     ](https://wordpress.org/support/plugin/getdave-responsive-navigation-block/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/getdave-responsive-navigation-block/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/getdave-responsive-navigation-block/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/getdave-responsive-navigation-block/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/getdave-responsive-navigation-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/getdave-responsive-navigation-block/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/getdave-responsive-navigation-block/reviews/)

## 參與者

 *   [ David Smith ](https://profiles.wordpress.org/get_dave/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/getdave-responsive-navigation-block/)