Title: All Alerts Code
Last modified: March 8, 2019

---

# All Alerts Code

 *  [getinstant](https://wordpress.org/support/users/getinstant/)
 * (@getinstant)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/all-alerts-code/)
 * Below are all the NWS alerts possible for the plugin to use. You will add it 
   to the class-nws-alerts.php in the plugin editor. Take away as needed. You may
   want to remove the icon code if you show all of this. I would say take away what
   you don’t want to show. This may make the plugin do more.
 * ‘Tsunami Warning’,
    ‘Tornado Warning’, ‘Extreme Wind Warning’, ‘Severe Thunderstorm
   Warning’, ‘Flash Flood Warning’, ‘Flash Flood Statement’, ‘Severe Weather Statement’,‘
   Shelter In Place Warning’, ‘Evacuation – Immediate’, ‘Civil Danger Warning’, ‘
   Nuclear Power Plant Warning’, ‘Radiological Hazard Warning’, ‘Hazardous Materials
   Warning’, ‘Fire Warning’, ‘Civil Emergency Message’, ‘Law Enforcement Warning’,‘
   Storm Surge Warning’, ‘Hurricane Force Wind Warning’, ‘Hurricane Warning’, ‘Typhoon
   Warning’, ‘Special Marine Warning’, ‘Blizzard Warning’, ‘Snow Squall Warning’,‘
   Ice Storm Warning’, ‘Winter Storm Warning’, ‘High Wind Warning’, ‘Tropical Storm
   Warning’, ‘Storm Warning’, ‘Tsunami Advisory’, ‘Tsunami Watch’, ‘Avalanche Warning’,‘
   Earthquake Warning’, ‘Volcano Warning’, ‘Ashfall Warning’, ‘Coastal Flood Warning’,‘
   Lakeshore Flood Warning’, ‘Flood Warning’, ‘High Surf Warning’, ‘Dust Storm Warning’,‘
   Blowing Dust Warning’, ‘Lake Effect Snow Warning’, ‘Excessive Heat Warning’, ‘
   Tornado Watch’, ‘Severe Thunderstorm Watch’, ‘Flash Flood Watch’, ‘Gale Warning’,‘
   Flood Statement’, ‘Wind Chill Warning’, ‘Extreme Cold Warning’, ‘Hard Freeze 
   Warning’, ‘Freeze Warning’, ‘Red Flag Warning’, ‘Storm Surge Watch’, ‘Hurricane
   Watch’, ‘Hurricane Force Wind Watch’, ‘Typhoon Watch’, ‘Tropical Storm Watch’,‘
   Storm Watch’, ‘Hurricane Local Statement’, ‘Typhoon Local Statement’, ‘Tropical
   Storm Local Statement’, ‘Tropical Depression Local Statement’, ‘Avalanche Advisory’,‘
   Freezing Rain Advisory’, ‘Winter Weather Advisory’, ‘Lake Effect Snow Advisory’,‘
   Wind Chill Advisory’, ‘Heat Advisory’, ‘Urban And Small Stream Flood Advisory’,‘
   Small Stream Flood Advisory’, ‘Arroyo And Small Stream Flood Advisory’, ‘Flood
   Advisory’, ‘Hydrologic Advisory’, ‘Lakeshore Flood Advisory’, ‘Coastal Flood 
   Advisory’, ‘High Surf Advisory’, ‘Heavy Freezing Spray Warning’, ‘Dense Fog Advisory’,‘
   Dense Smoke Advisory’, ‘Small Craft Advisory For Hazardous Seas’, ‘Small Craft
   Advisory For Rough Bar’, ‘Small Craft Advisory For Winds’, ‘Small Craft Advisory’,‘
   Brisk Wind Advisory’, ‘Hazardous Seas Warning’, ‘Dust Advisory’, ‘Blowing Dust
   Advisory’, ‘Lake Wind Advisory’, ‘Wind Advisory’, ‘Frost Advisory’, ‘Ashfall 
   Advisory’, ‘Freezing Fog Advisory’, ‘Freezing Spray Advisory’, ‘Low Water Advisory’,‘
   Local Area Emergency’, ‘Child Abduction Emergency’, ‘Avalanche Watch’, ‘Blizzard
   Watch’, ‘Rip Current Statement’, ‘Beach Hazards Statement’, ‘Gale Watch’, ‘Winter
   Storm Watch’, ‘Hazardous Seas Watch’, ‘Heavy Freezing Spray Watch’, ‘Coastal 
   Flood Watch’, ‘Lakeshore Flood Watch’, ‘Flood Watch’, ‘High Wind Watch’, ‘Excessive
   Heat Watch’, ‘Extreme Cold Watch’, ‘Wind Chill Watch’, ‘Lake Effect Snow Watch’,‘
   Hard Freeze Watch’, ‘Freeze Watch’, ‘Fire Weather Watch’, ‘Extreme Fire Danger’,‘
   Telephone Outage’, ‘Coastal Flood Statement’, ‘Lakeshore Flood Statement’, ‘Special
   Weather Statement’, ‘Marine Weather Statement’, ‘Air Quality Alert’, ‘Air Stagnation
   Advisory’, ‘Hazardous Weather Outlook’, ‘Hydrologic Outlook’, ‘Short Term Forecast’,

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [getinstant](https://wordpress.org/support/users/getinstant/)
 * (@getinstant)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/all-alerts-code/#post-11288832)
 * The code is copy and paste so you shouldn’t need to change anything as of the
   current plugin update. If you get an error under the $alert_types = apply_filters(‘
   nws_alerts_sort_alert_types’, you need to remove the last , before ));
 *  Thread Starter [getinstant](https://wordpress.org/support/users/getinstant/)
 * (@getinstant)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/all-alerts-code/#post-11288835)
 * Also not all those advisories are in the CAP but it covers any possible thing
   the NWS can put out for any weather event.
 *  Thread Starter [getinstant](https://wordpress.org/support/users/getinstant/)
 * (@getinstant)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/all-alerts-code/#post-11756732)
 * Below is the color coded warnings you can add to your nws-alerts.css file. Replace
   the existing code and add the code below for color coded results for each alert
   type that can be added above. You should add this code regardless of what warnings
   you are allowing the plugin to run it works with all alerts that can possibly
   be added to the feeds from the NWS.
 * /* Colors */
    .nws-alerts-color-,
 * .nws-alerts-color-911-telephone-outage {color:#c0c0c0;}
    .nws-alerts-color-administrative-
   message {color:#ffffff;} .nws-alerts-color-air-qulity-alert {color:#808080;} .
   nws-alerts-color-air-stagnation-advisory {color:#808080;} .nws-alerts-color-arctic-
   outflow-warning {color:#6d97e0;} .nws-alerts-color-ashfall-advisory {color:#a9a9a9;}.
   nws-alerts-color-avalanche-warning {color:#1e90ff;} .nws-alerts-color-avalanche-
   watch {color:#f4a460;} .nws-alerts-color-beach-hazard-statement {color:#40e0d0;}.
   nws-alerts-color-blizzard-warning {color:#ff4500;} .nws-alerts-color-blowing-
   dust-advisory {color:#bdb76b;} .nws-alerts-color-blowing-snow-advisory {color:#
   add8e6;} .nws-alerts-color-brisk-wind-advisory {color:#d8bfd8;} .nws-alerts-color-
   child-abduction-emergency {color:#ffd700;} .nws-alerts-color-civil-danger-warning{
   color:#ffb6c1;} .nws-alerts-color-civil-emergency-message {color:#ffb6c1;} .nws-
   alerts-color-coastal-flood-advisory {color:#7cfc00;} .nws-alerts-color-coastal-
   flood-statement {color:#6b8e23;} .nws-alerts-color-coastal-flood-warning {color:#
   228b22;} .nws-alerts-color-coastal-flood-watch {color:#66cdaa;} .nws-alerts-color-
   dense-fog-advisory {color:#708090;} .nws-alerts-color-dense-smoke-advisory {color:#
   f0e68c;} .nws-alerts-color-dust-storm-warning {color:#ffe4c4;} .nws-alerts-color-
   earthquake-warning {color:#8b4513;} .nws-alerts-color-evaucation-immediate {color:#
   7fff00;} .nws-alerts-color-excessive-heat-warning {color:#C71585;} .nws-alerts-
   color-excessive-heat-watch {color:#800000;} .nws-alerts-color-extreme-cold-warning{
   color:#0000ff;} .nws-alerts-color-extreme-cold-watch {color:#0000ff;} .nws-alerts-
   color-extreme-fire-danger {color:#e9967a;} .nws-alerts-color-extreme-wind-warning{
   color:#ff8c00;} .nws-alerts-color-fire-warning {color:#a0522d;} .nws-alerts-color-
   fire-weather-watch {color:#ffdead;} .nws-alerts-color-flash-flood-statement {
   color:#8b0000;} .nws-alerts-color-flash-flood-warning {color:#8b0000;} .nws-alerts-
   color-flash-flood-watch {color:#2e8b57;} .nws-alerts-color-flash-freeze-warning{
   color:#af00b1;} .nws-alerts-color-flood-advisory {color:#00ff7f;} .nws-alerts-
   color-flood-statement {color:#00ff7f;} .nws-alerts-color-flood-warning {color:#
   00ff7f;} .nws-alerts-color-flood-watch {color:#2e8b57;} .nws-alerts-color-freeze-
   warning {color:#483d8b;} .nws-alerts-color-freeze-watch {color:#00ffff;} .nws-
   alerts-color-freezing-drizzle-advisory {color:#6a5acd;} .nws-alerts-color-freezing-
   fog-advisory {color:#008080;} .nws-alerts-color-freezing-rain-warning {color:#
   8b008b;} .nws-alerts-color-freezing-spray-advisory {color:#00bfff;} .nws-alerts-
   color-frost-advisory {color:#6495ed;} .nws-alerts-color-gale-warning {color:#
   dda0dd;} .nws-alerts-color-gale-watch {color:#ffc0cd;} .nws-alerts-color-hard-
   freeze-warning {color:#9400d3;} .nws-alerts-color-hard-freeze-watch {color:#4169e1;}.
   nws-alerts-color-hazardous-materials-warning {color:#4b0082;} .nws-alerts-color-
   hazardous-seas-warning {color:#d8bfd8;} .nws-alerts-color-hazardous-weather-outlook{
   color:#eee8aa;} .nws-alerts-color-heat-advisory {color:#ff7f50;} .nws-alerts-
   color-heat-warning {color:#ff4811;} .nws-alerts-color-heavy-freezing-spray-warning{
   color:#00bfff;} .nws-alerts-color-heavy-freezing-spray-watch {color:#bc8f8f;}.
   nws-alerts-color-high-surf-advisory {color:#ba55d3;} .nws-alerts-color-high-surf-
   warning {color:#22eb22;} .nws-alerts-color-high-wind-warning {color:#daa520;}.
   nws-alerts-color-high-wind-watch {color:#b8860b;} .nws-alerts-color-hurricane-
   force-wind-warning {color:#cd5c5c;} .nws-alerts-color-hurricane-forece-wind-watch{
   color:#9932cc;} .nws-alerts-color-hurricane-local-statement {color:#ffe4b5;} .
   nws-alerts-color-hurricane-warning {color:#dc143c;} .nws-alerts-color-hurricane-
   watch {color:#ff00ff;} .nws-alerts-color-hydrological-advisory {color:#00ff7f;}.
   nws-alerts-color-ice-storm-warning {color:#8b008b;} .nws-alerts-color-lake-wind-
   advisory {color:#d2b48c;} .nws-alerts-color-lakeshore-flood-advisory {color:#
   7cfc00;} .nws-alerts-color-lakeshore-flood-statement {color:#6b8e23;} .nws-alerts-
   color-lakeshore-flood-warning {color:#228b22;} .nws-alerts-color-lakeshore-flood-
   watch {color:#66cdaa;} .nws-alerts-color-law-enforcement-warning {color:#c0c0c0;}.
   nws-alerts-color-local-area-emergency {color:#c0c0c0;} .nws-alerts-color-low-
   water-advisory {color:#a52a2a;} .nws-alerts-color-marine-weather-statement {color:#
   ffdab9;} .nws-alerts-color-nuclear-power-plant-warning {color:#4b0082;} .nws-
   alerts-color-radiological-hazard-warning {color:#4b0082;} .nws-alerts-color-rainfall-
   warning {color:#47ff81;} .nws-alerts-color-red-flag-warning {color:#ff1493;} .
   nws-alerts-color-rip-current-statement {color:#40e0d0;} .nws-alerts-color-severe-
   thunderstorm-warning {color:#ff0500;} .nws-alerts-color-severe-thunderstorm-watch{
   color:#db7093;} .nws-alerts-color-severe-weather-statement {color:#00ffff;} .
   nws-alerts-color-shelter-in-place-warning {color:#fa8072;} .nws-alerts-color-
   short-term-forecast {color:#98fb98;} .nws-alerts-color-small-craft-advisory {
   color:#d8bfd8;} .nws-alerts-color-small-craft-advisory-for-hazardous-seas {color:#
   d8bfd8;} .nws-alerts-color-small-craft-advisory-for-rough-bar {color:#d8bfd8;}.
   nws-alerts-color-small-craft-advisory-for-winds {color:#d8bfd8;} .nws-alerts-
   color-smog-warning {color:#f0e68c;} .nws-alerts-color-snow-squal-warning {color:#
   cc0084;} .nws-alerts-color-snow-squal-watch {color:#df2600;} .nws-alerts-color-
   snow-and-blowing-snow-advisory {color:#b0e0e6;} .nws-alerts-color-snowfall-warning{
   color:#28eef0;} .nws-alerts-color-special-marine-warning {color:#ffa500;} .nws-
   alerts-color-special-weather-statement {color:#ffe4b5;} .nws-alerts-color-squall-
   warning {color:#ffa500;} .nws-alerts-color-squall-watch {color:#db7093;} .nws-
   alerts-color-storm-surge-warning {color:#b524f7;} .nws-alerts-color-storm-surge-
   watch {color:#db7ff7;} .nws-alerts-color-storm-warning {color:#9400d3;} .nws-
   alerts-color-storm-watch {color:#ffe4b5;} .nws-alerts-color-tornado-warning {
   color:#ff0000;} .nws-alerts-color-tornado-watch {color:#ffff00;} .nws-alerts-
   color-tropical-cyclone-statement {color:#ffe4b5;} .nws-alerts-color-tropical-
   storm-local-statement {color:#ffe4b5;} .nws-alerts-color-tropical-strom-warning{
   color:#b22222;} .nws-alerts-color-tropical-storm-watch {color:#f08080;} .nws-
   alerts-color-tsunami-advisory {color:#d2694e;} .nws-alerts-color-tsunami-warning{
   color:#fd6347;} .nws-alerts-color-tsunami-watch {color:#ff00ff;} .nws-alerts-
   color-typhoon-local-statement {color:#ffe4b5;} .nws-alerts-color-typhoon-warning{
   color:#dc143c;} .nws-alerts-color-typhoon-watch {color:#ff00ff;} .nws-alerts-
   color-volcano-warning {color:#696969;} .nws-alerts-color-weather-advisory {color:#
   e8e172;} .nws-alerts-color-weather-warning {color:#ffc838;} .nws-alerts-color-
   wind-advisory {color:#d2b48c;} .nws-alerts-color-wind-chill-advisory {color:#
   afeeee;} .nws-alerts-color-wind-chill-warning {color:#b0c4de;} .nws-alerts-color-
   wind-chill-watch {color:#5f9ea0;} .nws-alerts-color-wind-warning {color:#f3aa00;}.
   nws-alerts-color-winter-storm-warning {color:#ff69b4;} .nws-alerts-color-winter-
   storm-watch {color:#4682b4;} .nws-alerts-color-winter-weather-advisory {color:#
   7b68ee;}
 *  Thread Starter [getinstant](https://wordpress.org/support/users/getinstant/)
 * (@getinstant)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/all-alerts-code/#post-11756737)
 * Replace the code part that is marked /* Colors */ in the CSS file and leave everything
   else. Don’t replace your entire CSS file with the above code.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘All Alerts Code’ is closed to new replies.

 * ![](https://ps.w.org/national-weather-service-alerts/assets/icon.svg?rev=1019219)
 * [National Weather Service Alerts](https://wordpress.org/plugins/national-weather-service-alerts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/national-weather-service-alerts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/national-weather-service-alerts/)
 * [Active Topics](https://wordpress.org/support/plugin/national-weather-service-alerts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/national-weather-service-alerts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/national-weather-service-alerts/reviews/)

 * 4 replies
 * 1 participant
 * Last reply from: [getinstant](https://wordpress.org/support/users/getinstant/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/all-alerts-code/#post-11756737)
 * Status: not resolved