Title: WP Alert Bar
Author: Ryan Bracey
Published: <strong>2020 年 6 月 4 日</strong>
Last modified: 2025 年 1 月 14 日

---

搜尋外掛

![](https://ps.w.org/wp-alert-bar/assets/banner-772x250.png?rev=3221900)

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

![](https://ps.w.org/wp-alert-bar/assets/icon-256x256.png?rev=2317695)

# WP Alert Bar

 由 [Ryan Bracey](https://profiles.wordpress.org/braceomatic88/) 開發

[下載](https://downloads.wordpress.org/plugin/wp-alert-bar.zip)

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

 [技術支援](https://wordpress.org/support/plugin/wp-alert-bar/)

## 外掛說明

WP Alert Bar allows you to quickly and easily add an alert bar to your WordPress
website.

All content and styles are fully customizable through the WordPress Customizer, 
allowing you to easily match the alert bar to your sites branding with no coding
necessary, and with real time preview you can see what you’re doing before publishing.
WP Alert Bar also gives you the ability modify the way the alert bar displays with
options to have the alert bar appear across your entire site or just the homepage,
or include a close button. This gives you the power to use WP Alert Bar in a way
that best fits your message.

WP Alert Bar also applies unique classes to the body tag and all elements of the
alert bar making it easy for developers to further modify the styles to fit the 
needs of your WordPress website.

### Features

 * Custom Colors to match your site branding
 * Custom title, message and call to action ( all items are optional and fully conditional)
 * Ability to display banner across your entire site or just the homepage
 * Body class added to pages where WP Alert Bar is visible

## 螢幕擷圖

 * [[
 * WP Alert Bar section in customizer
 * [[
 * Sub sections in customizer for Styles, Content, and Display
 * [[
 * Styles section to customize colors and font size. Options are editable from the
   customizer with real time preview
 * [[
 * Content section to add custom messaging and call to action. Options are editable
   from the customizer with real time preview
 * [[
 * Display section to customize where the alert displays on your site. Options are
   editable from the customizer with real time preview

## 常見問題集

### My WordPress site has a sticky header that uses position fixed causing it to cover the WP Alert Bar, how can I fix this?

**WP Alert Bar** comes with a filter that allows you to define your sites fixed 
header so that it can account for the alert bar. Simply navigate to the functions.
php file in your child theme and paste in the following code snippet, making sure
to replace .site-header with the class or ID of your sites fixed position header.

    ```
    // Define fixed header for WP Alert Bar
    add_filter( 'mbwpab_fixed_header_selector', 'mbwpab_define_fixed_header' );
    function mbwpab_define_fixed_header( $header ) {
        $header     =   '.site-header';
        return $header;
    }
    ```

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

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

參與者

 *   [ Ryan Bracey ](https://profiles.wordpress.org/braceomatic88/)

〈WP Alert Bar〉外掛目前已有 2 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/wp-alert-bar/contributors)
為這個外掛做出的貢獻。

[將〈WP Alert Bar〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp-alert-bar)

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

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

## 變更記錄

#### 1.0.4

_Release Date – Jan 13 2025_

 * Fix – Tested plugin against the most recent version of WordPress.

#### 1.0.3

_Release Date – April 4 2023_

 * Fix – Tested plugin against the most recent version of WordPress.

#### 1.0.2

_Release Date – May 10 2021_

 * Fix – Adjusted hook priority for WordPress Alert Bar to prevent conflict with
   favicons set through the WordPress Customizer.

#### 1.0.1

_Release Date – Jun 12 2020_

 * New – Added class to WordPress Alert Bar when close button is active.
 * Fix – Gave unique class selector to WordPress Alert Bar call to action.
 * Fix – Removed extra right padding on mobile when close button is not active.
 * Fix – Cleaned up erroneous styles from style.css.
 * Fix – Enqued WordPress Alert Bar style.css eairler to allow plugin stlyes to 
   be overridden using theme stylesheet, without the need for important tags.

#### 1.0.0

_Release Date – May 31 2020_

 * New – Added WordPress Alert Bar to repository.

## 中繼資料

 *  版本 **1.0.4**
 *  最後更新 **1 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 4.7.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.5**
 *  PHP 版本需求 ** 5.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-alert-bar/)、[Spanish (Chile)](https://cl.wordpress.org/plugins/wp-alert-bar/)、
   及 [Spanish (Spain)](https://es.wordpress.org/plugins/wp-alert-bar/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/wp-alert-bar)
 * 標籤:
 * [alert](https://tw.wordpress.org/plugins/tags/alert/)[alert bar](https://tw.wordpress.org/plugins/tags/alert-bar/)
   [notice](https://tw.wordpress.org/plugins/tags/notice/)[notification](https://tw.wordpress.org/plugins/tags/notification/)
   [notification bar](https://tw.wordpress.org/plugins/tags/notification-bar/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-alert-bar/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/wp-alert-bar/reviews/)

## 參與者

 *   [ Ryan Bracey ](https://profiles.wordpress.org/braceomatic88/)

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp-alert-bar/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ryanplugindonations@gmail.com&lc=US&no_note=0&item_name=Support+this+developer&cn=&curency_code=USD)