该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Emergency Alerts

描述

Create emergency alerts for your website. Inspired by the COVID-19 (Coronavirus) pandemic, but usable for all sorts of messaging that you need to get to your site’s users.

Includes options for text/background color, lightbox, fixed and absolute positioning. Includes some Javascript support for resizing.

You can force the alert to ALWAYS show or you can

屏幕截图

  • Sample settings screen with messaging. Toggle all plugin settings.

安装

  1. Upload the plugin files to the /wp-content/plugins/wpm-emergency-alerts directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings -> Emergnecy Alerts screen to configure the plugin
  4. If you have issues with the default output not looking right with your site, you may need to add custom CSS via the Appearance > Customize option in WordPress (see FAQs).

常见问题

Can I only show this on certain pages?

Currently, this is only available with a filter wpm_ea_status (set to "on" for on and "off" for off).

It’s trying to auto-adjust heights, can I turn this off?

Yes simply toggle the Enable Javascript Position Adjustments to OFF.

I installed the plugin, but it looks awful! What do I do?

You may need to add custom CSS. Usually the Lightbox, Top – Fixed, and Bottom – Fixed options work well regardless of site design, but are more obtrusive.

Top/Bottom Alert Positions will be more tricky with more complex header/footer areas. If you run out of support options, you may always work with our support team by signing up for further support at https://wpmaintainer.com

Is this responsive?

Yes, our default output is responsive but every site is different. You may require some custom CSS to make things look 100% perfect!

评价

此插件暂无评价。

贡献者及开发者

“Emergency Alerts” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Emergency Alerts”插件已被翻译至1种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Emergency Alerts”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.4.0

  • Corrects a bug where dismissing the alert wipes out default values from body_class()

1.3.0

  • Corrects a bug with the wpm_ea_status filter.

1.2.0

  • Adds custom expiration time for suppressable alerts.

1.1.1

  • Cleans up some code organization and comments.

1.1.0

  • Updates for repository imagery and a filename typo. Adds setting link shortcut.

1.0

  • First version of the plugin – released.