Title: Admin Bar Wrap Fix
Author: KZeni
Published: <strong>2018 年 8 月 15 日</strong>
Last modified: 2023 年 10 月 24 日

---

搜索插件

![](https://ps.w.org/admin-bar-wrap-fix/assets/banner-772x250.png?rev=1924882)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/admin-bar-wrap-fix/assets/icon-256x256.png?rev=1924892)

# Admin Bar Wrap Fix

 作者：[KZeni](https://profiles.wordpress.org/kzeni/)

[下载](https://downloads.wordpress.org/plugin/admin-bar-wrap-fix.1.2.7.zip)

 * [详情](https://cn.wordpress.org/plugins/admin-bar-wrap-fix/#description)
 * [评价](https://cn.wordpress.org/plugins/admin-bar-wrap-fix/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/admin-bar-wrap-fix/#developers)

 [支持](https://wordpress.org/support/plugin/admin-bar-wrap-fix/)

## 描述

Fixes the wrap behavior of the WordPress admin bar when it has too many items. Keep
it neat; don’t spill/overflow into the content.

Check things out on GitHub at [https://github.com/KZeni/Admin-Bar-Wrap-Fix](https://github.com/KZeni/Admin-Bar-Wrap-Fix)

## 屏幕截图

[⌊Too many items to show with plugin (it at least shows the left icon & truncates
text as needed).⌉⌊Too many items to show with plugin (it at least shows the left
icon & truncates text as needed).⌉[

Too many items to show with plugin (it at least shows the left icon & truncates 
text as needed).

[⌊Fewer items shown with plugin (shows normally).⌉⌊Fewer items shown with plugin(
shows normally).⌉[

Fewer items shown with plugin (shows normally).

[⌊What WordPress currently does without this plugin (overlapping items hijack hover
and makes things inaccessible, and the user experience is generally broken).⌉⌊What
WordPress currently does without this plugin (overlapping items hijack hover and
makes things inaccessible, and the user experience is generally broken).⌉[

What WordPress currently does without this plugin (overlapping items hijack hover
and makes things inaccessible, and the user experience is generally broken).

## 常见问题

### Shouldn’t this be fixed within WordPress itself?

I would think so. This has been submitted as a patch at [core ticket #44438](https://core.trac.wordpress.org/ticket/28983)&
[core GitHub pull request #1082](https://github.com/WordPress/wordpress-develop/pull/1082),
but I figured it would still be beneficial as a plugin to solve things for people
in the meantime.

## 评价

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

### 󠀁[IT WORKS!](https://wordpress.org/support/topic/it-works-2453/)󠁿

 [JanSnowski](https://profiles.wordpress.org/jansnowski/) 2023 年 10 月 20 日 1 
回复

I have been searching for ages for a solution then I found Admin Bar Wrap Fix. Thank
you! 😀

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

### 󠀁[Should be in core](https://wordpress.org/support/topic/should-be-in-core-31/)󠁿

 [strarsis](https://profiles.wordpress.org/strarsis/) 2023 年 3 月 1 日 1 回复

Really great, as this fixes many strange overflow issues on narrow viewports. The
functionality should be finally merged into WordPress core!

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

### 󠀁[So simple and effective](https://wordpress.org/support/topic/so-simple-and-effective-10/)󠁿

 [steph40](https://profiles.wordpress.org/steph40/) 2021 年 10 月 24 日 1 回复

Solved my admin bar issues. Should be part of the core. Thank you, you are awesome.

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

### 󠀁[Awesome Plugin](https://wordpress.org/support/topic/awesome-plugin-5476/)󠁿

 [himanshuhm](https://profiles.wordpress.org/himanshuhm/) 2020 年 10 月 29 日 1 
回复

That’s the plugin I was searching for my WP. Perfect Working.

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

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-23839/)󠁿

 [vipteam](https://profiles.wordpress.org/vipteam/) 2019 年 11 月 27 日

So far, I’ve performed acrobatics to manage the page normally. I have often narrowed
my browser down to tablet size. I was looking for a solution on the Internet. I 
accidentally stumbled upon this plugin. Great. Partial solution to the problem but
I can live with that. Regards,

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

### 󠀁[Awesome Plugin – Works Great!!](https://wordpress.org/support/topic/awesome-plugin-works-great-13/)󠁿

 [lunacodes](https://profiles.wordpress.org/lunacodes/) 2019 年 5 月 17 日

Love this plugin – it’s straightforward, works great, and solves something that’s
been a long-time frustration of mine. I made two small tweaks for spacing and readability
for my own site, in case they’re of interest: /* Improve spacing and prevent Site
Title from eating WP Logo */ #wpadminbar .quicklinks > ul > li, #wpadminbar .quicklinks.
ab-item { max-width: 100px; } /* Media Query – Min-Width: 1061px */ @media only 
screen and (min-width: 66.3125em) { #wpadminbar .quicklinks > ul > li, #wpadminbar.
quicklinks .ab-item { /* Reset the spacing. */ max-width: initial; text-overflow:
clip; } } Without the max-width, the site title wound up eating the WP logo on the
left side a little bit. Thx so much for the awesome plugin!!

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/admin-bar-wrap-fix/reviews/)

## 贡献者及开发者

「Admin Bar Wrap Fix」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ KZeni ](https://profiles.wordpress.org/kzeni/)

「Admin Bar Wrap Fix」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/admin-bar-wrap-fix/contributors)
为本插件所做的贡献。

[帮助将「Admin Bar Wrap Fix」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/admin-bar-wrap-fix)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/admin-bar-wrap-fix/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/admin-bar-wrap-fix/)，或通过[RSS](https://plugins.trac.wordpress.org/log/admin-bar-wrap-fix/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/admin-bar-wrap-fix/)。

## 更新日志

#### 1.2.7

Released October 24th, 2023

 * Added links to the plugin details on the main plugin page.
 * Confirmed WordPress 6.4 compliance.= 1.2.6 =

Released July 24th, 2023

 * Confirmed WordPress 6.3 compliance.

#### 1.2.5

Released March 20th, 2023

 * Confirmed WordPress 6.2 compliance.

#### 1.2.4

Released October 31st, 2022

 * Confirmed WordPress 6.1 compliance.

#### 1.2.3

Released May 6th, 2022

 * Confirmed WordPress 6.0 compliance.

#### 1.2.2

Released January 24th, 2022

 * Confirmed WordPress 5.9 compliance.

#### 1.2.1

Released July 12th, 2021

 * Confirmed WordPress 5.8 compliance.

#### 1.2

Released May 31st, 2021

 * Mobile admin bar is now accounted for as plugins have recently been adding their
   own items to the mobile menu as well & potentially causing items wrap onto a 
   new line outside of the admin bar given the available space. Instead of wrapping
   to overlap the actual content, it simply offers a horizontal scroll for when 
   there are too many items to show on screen at once (keeping the items all within
   the admin bar’s one row of icons.)

#### 1.1

Released March 25th, 2021

 * Removed an unnecessary truncation.
 * Made the CSS code smaller & simpler.
 * Updated info to point to the current WordPress Core [Trac ticket](https://core.trac.wordpress.org/ticket/28983)
   and [GitHub pull request](https://github.com/WordPress/wordpress-develop/pull/1082).

#### 1.0.7

Released March 3rd, 2021

 * Confirmed WordPress 5.7 compliance.

#### 1.0.6

Released November 23rd, 2020

 * Confirmed WordPress 5.6 compliance.

#### 1.0.5

Released August 14th, 2020

 * Added GPLv3 license declaration to the plugin details.

#### 1.0.4

Released August 3rd, 2020

 * Made it so the stylesheet is only included when the admin bar is being shown.
 * Updated to confirm WordPress 5.5 compatibility. Minor plugin metadata updates.

#### 1.0.3

Released June 22nd, 2020

 * Updated to confirm WordPress 5.4.2 compatibility. Minor plugin metadata updates.

#### 1.0.2

Released March 6th, 2020

 * Updated to confirm WordPress 5.4 compatibility.

#### 1.0.1

Released January 9th, 2020

 * Added GitHub info to description.

#### 1.0.0

Released January 9th, 2020

 * Implemented further CSS refinements (thanks, [@lunacodes](https://profiles.wordpress.org/lunacodes/)).
 * Bumped to 1.0.0 given the positive feedback, growing usage, and lack of anyone
   reporting any bugs along the way.

#### 0.9.3

Released December 9th, 2018

 * Updated to confirm WordPress 5.0 compatibility.

#### 0.9.2

Released August 15th, 2018

 * Got the plugin listed & working on the WP.org plugin repository.

#### 0.9.1

Released August 13th, 2018

 * Implemented all necessary assets and submitted to WP.org plugin repository.

#### 0.9

Released July 30th, 2018

 * Packaged as a plugin.

#### 0.5

Released July 6th, 2018

 * Updated version of the original Patch for admin-bar.css to make it friendly for
   admin bars which don’t have too many items shown.

#### 0.1

Released June 22nd, 2018

 * Initial implementation via [core ticket #44438](https://core.trac.wordpress.org/ticket/44438).

## 额外信息

 *  版本 **1.2.7**
 *  最后更新：**3 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/admin-bar-wrap-fix/) 和 [Swedish](https://sv.wordpress.org/plugins/admin-bar-wrap-fix/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/admin-bar-wrap-fix)
 * 标签
 * [admin bar](https://cn.wordpress.org/plugins/tags/admin-bar/)[adminbar](https://cn.wordpress.org/plugins/tags/adminbar/)
   [overflow](https://cn.wordpress.org/plugins/tags/overflow/)[ui](https://cn.wordpress.org/plugins/tags/ui/)
 *  [高级视图](https://cn.wordpress.org/plugins/admin-bar-wrap-fix/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  6 条 5 星评价     ](https://wordpress.org/support/plugin/admin-bar-wrap-fix/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/admin-bar-wrap-fix/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/admin-bar-wrap-fix/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/admin-bar-wrap-fix/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/admin-bar-wrap-fix/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/admin-bar-wrap-fix/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/admin-bar-wrap-fix/reviews/)

## 贡献者

 *   [ KZeni ](https://profiles.wordpress.org/kzeni/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/admin-bar-wrap-fix/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/KZeni)