Create an alert notification bar anywhere in your website. Place the shortcode in a page, post, widget or template file one time. Then use the Alert post function in the dashboard to create and edit alerts, which will appear wherever you’ve placed the short code.
Install the plugin. Embed the shortcode in a page or post as
[fiatalert] or in a template file
<?php echo do_shortcode.
Create an alert in the WordPress dashboard using the new Alerts custom post type. The content or body of the alert will appear where you have placed the shortcode. WYSIWYG styling will be passed through (including text align center and links).
If you create multiple alerts only the most recent one will be displayed. If you do not want any alert displayed then change the status of each alert to “draft”.
For more information please visit http://fiatinsight.com
- Upload the
fiatalertplugin folder to the
/wp-content/pluginsfolder of your WordPress installation.
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Choose the location where you want the alert to appear. Place the shortcode
[fiatalert]in a page or post or
<?php echo do_shortcode('[fiatalert]');?>in a template file.
- In the WordPress dashboard click on “Alerts” and “Add New”
- Enter your desired alert message in the body of the alert (not the title). Only text entered into the body will appear.
Press the blue “Publish” button and your alert will now appear on your site wherever you placed the shortcode.
For more information please visit http://fiatinsight.com/plugins/fiat-alert
- Where will the alert appear?
The alert appears wherever you choose! Simply embed the shortcode
[fiatalert]in a page or post or embed
<?php echo do_shortcode('[fiatalert]');?>in a template file. No alert will be visible on your website until you create one using the “Alerts” menu in the dashboard.
- How do I edit the style of the alert?
For more customization, override the styling of the classes
.fiat-alert h3in your stylesheet. Use
- How do I remove the alert?
Change the alert’s status to “draft” or delete the alert.
- I can’t get the alerts to go away!
You must either change each alert’s status to “draft” and/or delete all the alerts so that no alert will be shown.
- What if I create multiple alerts?
Only the most recent alert will be shown.
- Can I save an alert for later?
Yes. Edit the alert and change it’s status to “draft” so that it is not published.
Contributors & Developers
“Fiat Alert Bar” is open source software. The following people have contributed to this plugin.Contributors
Updates to read me file.
Added FAQs link on the plugins page and updated FAQs.
Added widget support for shortcode
Added close “x” to remove alert bar (requires Bootstrap JS)
Added wp_reset_query() to correct issue with post titles