A fixed position (header) HTML with jQuery drop-down announcement bar using Custom Post Types.
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
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.
This plugin is brand new and has some future planes.
Follow the steps below to install the plugin.
announcement-bar
directory to the /wp-content/plugins/ directory. OR click add new plugin in your WordPress admin.Please visit your permalinks settings page after activating the plugin.
= Version 0.4.1 (04/23/15)
= Version 0.4 (12/17/14)
= Version 0.3.2 (12/3/12)
= Version 0.3.1.1 (02/16/12)
register_uninstall_hook
.= Version 0.3.1 (11/8/11)
.attr()
to .prop()
for jQuery 1.6.x. New minimum install requirements.rss.php
and use class-simplepie.php
z-index
for WordPress 3.1 admin-bar.POT
file added to languages.post_type
announcementbar incorect on post-type.php.is_admin_bar_showing
to work only with WP 3.1 or greater.wp-load.php
to create dynamic CSS.slug
stuck in readonly setting.TODO