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

Unobtrusive Admin Bar

外掛說明

When activated the plugin will make the admin bar hidden from sight for signed in users, but you can still have access to the features. Simply move the cursor to the top of your website and the admin bar will appear. Now you can keep the accessibility of the WordPress admin bar without compromising the appearance of your website.

See our other plugins:

Have some feedback or a suggestion? Let us know!

螢幕擷圖

  • The admin bar is hidden by default.
  • Hovering near the top of the page reveals a hint for a visual indication. Pausing on this will reveal the full admin bar.
  • After hovering the admin bar is revealed.

安裝方式

Upload the plugin to your WordPress plugins directory, or use the dashboard to ‘Add New’ plugins and activate it.

Filters

There are a couple of filters available to make adjustments for your site. These may be added to an options panel in a future release.

uab_responsive_break_point

  • This passes a numeric value. The admin-bar is shown automatically on smaller screens because an auto-hide effect on hover would not work with touch devices. The default value is 783 which is the current WordPress break point for showing the mobile styling for the admin bar.

Sample use:

function my_adminbar_breakpoint( $break )
    $break = 960;
    return $break;
}
add_filter('uab_responsive_break_point', 'my_adminbar_breakpoint');

uab_add_top_margin

  • Optionally adds back the margin to <html> and <body> for the admin bar. The result is the page content pushes down during the display of the admin bar. Due to the positioning of headers and menus with fixed and top docked styles this often has no effect. The allowed values are (boolean) true, false and (string) ‘top’. The default setting is false. The ‘top’ value will apply the margin only when the user has not scrolled.

Sample use:

function my_adminbar_margin( $option )
    $option = true; // false (default), true or 'top'
    return $option;
}
add_filter('uab_add_top_margin', 'my_adminbar_margin');

使用者評論

2016 年 12 月 20 日
simple plugin, does the job very well! highly recommended.
2016 年 9 月 3 日
Incredibly elegant solution. Thank you for making this happen!
2016 年 9 月 3 日
A little outdated plugin and not updated but it does what I was looking for and not messing up the sticky menu either. Great job guys and keep this plugin update please. I will always use this if you update it.
閱讀全部 5 則使用者評論

參與者及開發者

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

參與者

將〈Unobtrusive Admin Bar〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0.0

Release Date – 10 July 2015

  • Initial Release