Title: Announcement Bar
Author: Austin
Published: <strong>2 augusti 2011</strong>
Last modified: 23 april 2015

---

Sök tillägg

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

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

![](https://ps.w.org/announcement-bar/assets/icon.svg?rev=1128433)

# Announcement Bar

 Av [Austin](https://profiles.wordpress.org/austyfrosty/)

[Ladda ner](https://downloads.wordpress.org/plugin/announcement-bar.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/announcement-bar/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/announcement-bar/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/announcement-bar/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/announcement-bar/#developers)

 [Support](https://wordpress.org/support/plugin/announcement-bar/)

## Beskrivning

This plugin adds a jQuery file that will position a fixed bar at the top of your
browser screen to show announcements (controlled by a custom post type [CPT]) on
each page load. Built with simple HTML and javascript.

Upon installation, you can choose the prefix for your post type. Be sure to choose
wisely, because once you publish your first post this can’t be changed. If you are
having problems with redirects visit your _permalinks_ page to flush your rewrite
rules by visiting your permalinks settings page (no save needed).

**New**: A cookie is added and deleted when you toggle the bar open and closed. 
Depending on the position of the bar when you leave the page is where it will be
when you re-visit the site.

For question please visit my blog @ [http://austin.passy.co](http://austin.passy.co/wordpress-plugins/announcement-bar/)

**The Link**
 Please be aware when publishing a post, as of right now, you have 
to fill in the content with non-html text and add a link into the link field. This
link is really the permalink and is what gets counted when clicked on. It will also
revert to the home page if missing, and not count against the counter. If you’re
getting 404 issues when visiting the permalink page, please refer to the FAQ section.

### Future Releases

This plugin is brand new and has some future planes.

 1. Saved bar position with cookie settings.
 2. Post and page per post ID.
 3. Per post on/off toggle.
 4. ….

## Skärmdumpar

 * [[
 * The settings page.
 * [[
 * The edit post page.
 * [[
 * The add post page.
 * [[
 * The drop-down bar.

## Installation

Follow the steps below to install the plugin.

 1. Upload the `announcement-bar` directory to the /wp-content/plugins/ directory. 
    OR click add new plugin in your WordPress admin.
 2. Activate the plugin through the ’Plugins’ menu in WordPress.
 3. Go to Announcement Bar settings to edit your settings.

## Vanliga frågor

  I am getting a 404 error?

Please visit your permalinks settings page after activating the plugin.

## Recensioner

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

### 󠀁[Garbage messes up header](https://wordpress.org/support/topic/garbage-messes-up-header/)󠁿

 [raisingsails](https://profiles.wordpress.org/raisingsails/) 17 augusti 2018 1 
svar

It will show up on every page and jack up your header.

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

### 󠀁[Doesn’t work with Twenty Sixteen Theme](https://wordpress.org/support/topic/doesnt-work-with-twenty-sixteen-theme/)󠁿

 [coderkevin](https://profiles.wordpress.org/coderkevin/) 14 november 2016

I see the HTML in the source, but it doesn’t show up visually for the Twenty Sixteen
default theme and other themes that I tested.

 [ Läs alla 3 betyg ](https://wordpress.org/support/plugin/announcement-bar/reviews/)

## Bidragsgivare och utvecklare

”Announcement Bar” är programvara med öppen källkod. Följande personer har bidragit
till detta tillägg.

Bidragande personer

 *   [ Austin ](https://profiles.wordpress.org/austyfrosty/)

[Översätt ”Announcement Bar” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/announcement-bar)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/announcement-bar/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/announcement-bar/) eller
prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/announcement-bar/)
via [RSS](https://plugins.trac.wordpress.org/log/announcement-bar/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

= Version 0.4.1 (04/23/15)

 * Fix unexpected error during activation.

= Version 0.4 (12/17/14)

 * LOTS of code cleanup.
 * Fix basic PHP notices.
 * Ready for WordPress 4.1.

= Version 0.3.2 (12/3/12)

 * Updated Dashboard
 * Removed PHP4 support

= Version 0.3.1.1 (02/16/12)

 * Updated `register_uninstall_hook`.

= Version 0.3.1 (11/8/11)

 * Feeds updates.
 * WordPress 3.3 check

#### Version 0.3 (9/8/11)

 * Dashboard fix.
 * Other stuff I can’t remember.

#### Version 0.2.2 (6/23/11)

 * [BUG FIX] An error in the dashboard widget is causing some large images. Sorry.
   Always escape.

#### Version 0.2.1 (6/13/11)

 * Russian Translation files added (thanks to Elvis: http://wp.turkenichev.ru/).

#### Version 0.2 (6/1/11)

 * Complete overhaul.
 * [NEW] Now saves bar position with cookies.
 * Added backwords compatibility for jQuery < 1.6.x.
 * [NEW] Add your own custom CSS.

#### Version 0.1.5 (5/16/11)

 * Updated `.attr()` to `.prop()` for jQuery 1.6.x. New minimum install requirements.

#### Version 0.1.4 (3/30/11)

 * Dashboard widget updated.

#### Version 0.1.3 (2/24/11)

 * Removed javscript link causing hang-ups.

#### Version 0.1.2 (2/9/11)

 * Updated the feed parser to comply with deprecated `rss.php` and use `class-simplepie.
   php`

#### Version 0.1.1 (12/23/10)

 * Update CSS `z-index` for WordPress 3.1 admin-bar.

#### Version 0.1 (12/21/10)

 * Readme.txt file updated a bit. `POT` file added to languages.

#### Version 0.09 (12/20/10)

 * `post_type` **announcementbar** incorect on post-type.php.

#### Version 0.08 (12/20/10)

 * Bug fixes.

#### Version 0.07 (12/20/10)

 * Plugin name changed.

#### Version 0.06 (12/19/10)

 * Fixed issue with `is_admin_bar_showing` to work only with WP 3.1 or greater.
 * Couldn’t find `wp-load.php` to create dynamic CSS.

#### Version 0.05 (12/19/10)

 * Fixed issue with `slug` stuck in readonly setting.

#### Version 0.04 (12/19/10)

 * Removed scripts and styles from the admin.
 * Removed filter, used during testing.

#### Version 0.03 (12/19/10)

 * Readme update.
 * Added Custom Post Type.
 * Added options panel.
 * Added jQuery & CSS.

**TODO**

 * Check rewrite rules flushing proper on _slug_ change.
 * Better stats.

#### Version 0.02α (12/15/10)

 * Readme update.

## Meta

 *  Version **0.4.1**
 *  Senast uppdaterat **11 år sedan**
 *  Aktiva installationer **3 000+**
 *  WordPress-version ** 3.2 eller senare **
 *  Testat upp till **4.2.39**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/announcement-bar/)
 * Etiketter
 * [admin](https://sv.wordpress.org/plugins/tags/admin/)[announcement](https://sv.wordpress.org/plugins/tags/announcement/)
   [announcement bar](https://sv.wordpress.org/plugins/tags/announcement-bar/)[bar](https://sv.wordpress.org/plugins/tags/bar/)
   [stats](https://sv.wordpress.org/plugins/tags/stats/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/announcement-bar/advanced/)

## Betyg

 1 av 5 stjärnor.

 *  [  0 5-stjärniga recensioner     ](https://wordpress.org/support/plugin/announcement-bar/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/announcement-bar/reviews/?filter=4)
 *  [  0 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/announcement-bar/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/announcement-bar/reviews/?filter=2)
 *  [  2 1-stjärniga recensioner     ](https://wordpress.org/support/plugin/announcement-bar/reviews/?filter=1)

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

[Se alla recensioner](https://wordpress.org/support/plugin/announcement-bar/reviews/)

## Bidragande personer

 *   [ Austin ](https://profiles.wordpress.org/austyfrosty/)

## Support

Har du något att säga? Behöver du hjälp?

 [Visa supportforum](https://wordpress.org/support/plugin/announcement-bar/)

## Donera

Skulle du vilja bidra till utvecklingen av detta tillägg?

 [ Donera till det här tillägget ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VDD3EDC28RAWS)