Title: Auto Hide Admin Bar
Author: Marcel Bootsman
Published: <strong>2011 年 3 月 3 日</strong>
Last modified: 2025 年 12 月 27 日

---

搜索插件

![](https://ps.w.org/auto-hide-admin-bar/assets/banner-772x250.png?rev=3428280)

![](https://ps.w.org/auto-hide-admin-bar/assets/icon-256x256.png?rev=3428280)

# Auto Hide Admin Bar

 作者：[Marcel Bootsman](https://profiles.wordpress.org/mbootsman/)

[下载](https://downloads.wordpress.org/plugin/auto-hide-admin-bar.1.7.1.zip)

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

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

## 描述

Auto Hide Admin Bar makes the WordPress Toolbar disappear – and reappear when hovering
the mouse pointer over the top of the browser window.
 You end up with a clean view
of your site, and keep having access to the WordPress Toolbar. If you have any comments
or questions, please use the [support forum](https://wordpress.org/support/plugin/auto-hide-admin-bar).

## 屏幕截图

 * [[
 * The settings page.

## 安装

Options to tweak the behavior can be found under _Settings_ > _Auto Hide Admin Bar_.

## 常见问题

### Can this plugin be translated in my own language?

Yes, see the [WordPress translations](https://translate.wordpress.org/projects/wp-plugins/auto-hide-admin-bar/).

### This plugin was recently adopted, what’s the plan?

No changes are planned for the end user. The plugin will remain backwards compatible.

A big code refactor was done. In Q2 2026 the minimum php version will be updated
to 8.2. There are no plans to extend the functionality. Feel free to ask in the 
[support forum](https://wordpress.org/support/plugin/auto-hide-admin-bar)

## 评价

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

### 󠀁[Perfect!](https://wordpress.org/support/topic/perfect-10625/)󠁿

 [Alex Freixa](https://profiles.wordpress.org/alexfreixa/) 2025 年 1 月 9 日

This is exactly what I needed, thanks!

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

### 󠀁[only partially works](https://wordpress.org/support/topic/only-partially-works-4/)󠁿

 [ofihsdfoi](https://profiles.wordpress.org/ofihsdfoi/) 2024 年 8 月 13 日

the settings to make it not slide in as quick does not work. no matter what, the
moment you put your mouse near the top of the page, the admin bar will show itself.
other than that very good.

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

### 󠀁[Simply beautiful!](https://wordpress.org/support/topic/simply-beautiful-21/)󠁿

 [goashape](https://profiles.wordpress.org/goashape/) 2021 年 11 月 14 日 1 回复

Simply beautiful! I don’t know why this option not include WordPress at this time.
I mean, this dynamic hiding option, not only show and hide.

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

### 󠀁[Good Plugin](https://wordpress.org/support/topic/good-plugin-4593/)󠁿

 [a3132](https://profiles.wordpress.org/a3132/) 2020 年 9 月 7 日 1 回复

The admin bar still pops up when you hover your mouse over the top of the screen
but disappears when the mouse is moved away.

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

### 󠀁[wow autohide](https://wordpress.org/support/topic/wow-autohide/)󠁿

 [moazwm](https://profiles.wordpress.org/moazwm/) 2020 年 3 月 6 日 1 回复

Creative: wow autohide instead of just hide

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

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

 [qstar](https://profiles.wordpress.org/qstar/) 2019 年 12 月 23 日

Thanks.

 [ 阅读所有32条评价 ](https://wordpress.org/support/plugin/auto-hide-admin-bar/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Marcel Bootsman ](https://profiles.wordpress.org/mbootsman/)
 *   [ Jan-Willem ](https://profiles.wordpress.org/janwoostendorp/)

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.7.1

 * Just for github intergration

#### 1.7.0 – 24-dec-2025

 * Big code refactor.
 * Follow WP Coding Standards.
 * PHP 7.4 compatibility is intact.
 * No functional changes, nothing changes for users.
 * On the option page, labels have changed.
 * Validate the settings when saving.
 * Remove option on uninstall.

#### 1.6.6

 * Added primary branch tag in plugin header
 * Added override to prevent w.org updates

#### 1.6.5

 * Added language files (Dutch, Chinese (Taiwan))
 * Added logic for language files without w.org
 * Added pot file

#### 1.6.4

 * Added GitHub URI to support [git-updater](https://github.com/afragen/git-updater)

#### 1.6.3

 * Removed donate link
 * Removed @link lines in function headers

#### 1.6.2

 * Fixed Cross Site Scripting (XSS) Vulnerability. Props: darius.sveikauskas @ patchstack.
   com

#### 1.6.1

 * Fixed SVN commit gone wrong… Sorry.

#### 1.6

 * Added toggle switch in the admin bar to (temporarily) enable/disable auto-hiding
   of the admin bar without going to the settings page.
 * Fixed links in readme.txt.
 * Added GitHub repository link to readme.txt.

#### 1.5

 * Changed behavior of arrow. It now needs to be clicked to show/hide the admin 
   bar, and has been given a little design love.

#### 1.4.4

 * Removed console log lines.

#### 1.4.3

 * Updated donate link.

#### 1.4.2

 * Fixed issue with PHP 7.4.
 * Removed Admin settings, since they were not used.

#### 1.4.1

 * Fixed checking for existing options values. [Props: hanfox](https://wordpress.org/support/topic/updating-to-v1-4-throws-errors-due-to-new-empty-options/).

#### 1.4

 * Added option to show an arrow when the toolbar is hidden. [Link to suggestion](https://wordpress.org/support/topic/show-small-arrow-when-hidden/).

#### 1.3.1

 * Fixed SSL mixed content issue. Props: @steveec-1, [topic](https://wordpress.org/support/topic/ssl-mixed-content-9/).

#### 1.3

 * Fixed issue when using Beaver Builder 2.x+.

#### 1.2.4

 * Fixed issue with keyboard shortcut labels. Please save your settings when the
   shortcut is not working.

#### 1.2.3

 * Fixed issue with keyboard shortcut not working. Key was not picked up correctly.

#### 1.2.2

 * Fixed issue with user roles.

#### 1.2.1

 * Fixed issue because of not checking for availability of variable.

#### 1.2

 * Added setting to disable the plugin for any available user role.
 * Added keyboard shortcut setting. Now you can show and hide the Toolbar with a
   keyboard shortcut! Thanks for the feature request photoMaldives (https://wordpress.
   org/support/topic/very-useful-works-exactly-as-expected/).
 * Added donate link as plugin actions. Want to donate? Go [here](https://nostromo.nl/wordpress-plugins/auto-hide-admin-bar/).
 * Added donate link in plugin settings.
 * Moved version number in plugin settings screen to bottom.

#### 1.1

 * Moved inline Javascript code to external file and have it registered and enqueued.
   
   Thanks iCounsellorUK fro reporting [this](https://wordpress.org/support/topic/assumes-jquery-loads-first/).

#### 1.0.3

 * Fixed logged in detection, replaced test for class .logged-in to test for #wpadminbar,
   which is universal and dependent on theme developers.
    Thanks wloske for this
   [suggestion](https://wordpress.org/support/topic/not-working-for-me-140).

#### 1.0.2

 * Added load_textdomain() function.

#### 1.0.1

 * Something went wrong in SVN, fixed it with this new commit.

#### 1.0

 * Internationalized the plugin, which was a good reason to increase version to 
   1.0 🙂

#### 0.9.2

 * Fixed ‘ReferenceError: adminBarIn is not defined’ bug.
 * Updated hoverIntent jQuery plugin to version 1.8.1.

#### 0.9.1

 * Code will not execute when in WordPress customizer view, to prevent top of page
   cut-off.

#### 0.9

 * Changed description.
 * Moved settings page to settings menu.
 * Minor code cleaning/reorganization.
 * Fixed some typo’s in strings.
 * Fixed the hidden div (the one that triggers te re-appearance of the Toolbar) 
   to not be added on window resize. We only need one…

#### 0.8.2

 * Changed loading of scripts to wp_footer.
 * Changed wrapping of jQuery anonymous function to use a document ready function
   to prevent compatibility issues.

#### 0.8.1

 * Replaced get_current_theme() with wp_get_theme(). Thanks to ElectricFeet via 
   Support Forum; https://wordpress.org/support/topic/wp_debug-gives-message-that-
   get_current_theme-is-deprecated

#### 0.8

 * Some CSS changes due to larger Toolbar in WordPress 3.8.
 * Added option for hiding/showing the Toolbar on small screens.
 * Added support for Twenty Fourteen. Need to think of a solid way to support themes
   with fixed headers/navigation. Tips are welcome.

#### 0.7

 * Removed external jQuery library.
 * Added options page.
 * Added options for animation speed, delay and mouse polling interval.

#### 0.6.3

 * Changed background-position to background-position-y, because of IE8 problem (
   of course…). Thanks to per (feja@home.se) for submitting the bug, and the jQuery
   bugtracker for the hint: http://bugs.jquery.com/ticket/11838

#### 0.6.2

 * Added style adjustment for body background.

#### 0.6.1

 * Switched wp_enqueue_script sequence for jquery and jquery.hoverintent due to 
   problems.

#### 0.6

 * By request, added delay for showing/hiding the Admin Bar. A settings page will
   be included in the future.

#### 0.5

 * Changed position of hidden div to fixed, so the admin bar is showed also when
   you have scrolled down on your site.

#### 0.4

 * Changed jQuery enqueue manner. Now using the wp_print_scripts hook. Thanks to
   Ralph from zonebattler.net for mentioning this bug.

#### 0.3

 * Added – Only activate the plugin when a user is logged in.

#### 0.2

 * Added – wp_enqueue_script for jQuery.

#### 0.1

 * Initial Release.

## 额外信息

 *  版本 **1.7.1**
 *  最后更新：**4 月前**
 *  活跃安装数量 **4,000+**
 *  WordPress 版本 ** 3.1 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/auto-hide-admin-bar/) 、 
   [Dutch](https://nl.wordpress.org/plugins/auto-hide-admin-bar/) 、 [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/auto-hide-admin-bar/)、
   [English (US)](https://wordpress.org/plugins/auto-hide-admin-bar/) 、 [French (France)](https://fr.wordpress.org/plugins/auto-hide-admin-bar/)
   和 [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/auto-hide-admin-bar/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/auto-hide-admin-bar)
 * 标签
 * [admin bar](https://cn.wordpress.org/plugins/tags/admin-bar/)[autohide](https://cn.wordpress.org/plugins/tags/autohide/)
   [hide](https://cn.wordpress.org/plugins/tags/hide/)[toolbar](https://cn.wordpress.org/plugins/tags/toolbar/)
 *  [高级视图](https://cn.wordpress.org/plugins/auto-hide-admin-bar/advanced/)

## 评级

 4.8 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Marcel Bootsman ](https://profiles.wordpress.org/mbootsman/)
 *   [ Jan-Willem ](https://profiles.wordpress.org/janwoostendorp/)

## 支持

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

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