{"id":3294,"date":"2020-03-11T12:58:49","date_gmt":"2020-03-11T18:58:49","guid":{"rendered":"http:\/\/wp.natsci.colostate.edu\/cnsit\/?p=3294"},"modified":"2022-02-16T11:12:41","modified_gmt":"2022-02-16T18:12:41","slug":"adding-cns-college-alerts-to-a-webpage","status":"publish","type":"post","link":"https:\/\/cnsit.colostate.edu\/kb\/adding-cns-college-alerts-to-a-webpage\/","title":{"rendered":"Adding CNS College Alerts to a webpage"},"content":{"rendered":"\n<p>The most direct way to add an alert to your webpage is to include the following snippet of HTML code directly into your webpage. This HTML code includes a reference back to a server that can distribute and update a consistent message from the College of Natural Sciences.<\/p>\n\n\n\n<div class=\"wp-block-group has-very-light-gray-background-color has-background\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>&lt;!-- This code snippet is meant to be included within a larger WordPress or other webpage --&gt;\n&lt;div id=\"cns-alert\"&gt;&lt;\/div&gt;\n&lt;script async src=\"\/\/cnsdrake.natsci.colostate.edu\/assets\/20200311.js\"&gt;&lt;\/script&gt;<\/code><\/pre>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"directions-for-wordpress\">Directions for WordPress<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Add a new Row element to your page, post, or other content area.<\/li><li>Add a new Raw HTML element to your row.<\/li><li>Paste in the above HTML code, replacing the default content.<\/li><li>Preview and Update your page.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1211\" height=\"1160\" src=\"https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_19.png\" alt=\"Adding a new row in WordPress\" class=\"wp-image-3295\" srcset=\"https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_19.png 1211w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_19-300x287.png 300w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_19-1024x981.png 1024w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_19-768x736.png 768w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_19-1200x1149.png 1200w\" sizes=\"auto, (max-width: 1211px) 100vw, 1211px\" \/><figcaption>Begin by adding a new row in WordPress<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1211\" height=\"1160\" src=\"https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_40.png\" alt=\"Adding a &quot;Raw HTML&quot; Element\" class=\"wp-image-3296\" srcset=\"https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_40.png 1211w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_40-300x287.png 300w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_40-1024x981.png 1024w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_40-768x736.png 768w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_35_40-1200x1149.png 1200w\" sizes=\"auto, (max-width: 1211px) 100vw, 1211px\" \/><figcaption>Add a &#8220;Raw HTML&#8221; Element<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1211\" height=\"1160\" src=\"https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_32.png\" alt=\"Pasting in the HTML snippet\" class=\"wp-image-3297\" srcset=\"https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_32.png 1211w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_32-300x287.png 300w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_32-1024x981.png 1024w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_32-768x736.png 768w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_32-1200x1149.png 1200w\" sizes=\"auto, (max-width: 1211px) 100vw, 1211px\" \/><figcaption>Paste in the HTML snippet<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1211\" height=\"1160\" src=\"https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_41.png\" alt=\"Preview and Update the Page\" class=\"wp-image-3298\" srcset=\"https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_41.png 1211w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_41-300x287.png 300w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_41-1024x981.png 1024w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_41-768x736.png 768w, https:\/\/cnsit.colostate.edu\/kb\/wp-content\/uploads\/2020\/03\/2020-03-11-12_36_41-1200x1149.png 1200w\" sizes=\"auto, (max-width: 1211px) 100vw, 1211px\" \/><figcaption>Preview and Update the Page<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The most direct way to add an alert to your webpage is to include the following snippet of HTML code directly into your webpage. This HTML code includes a reference back to a server that can distribute and update a consistent message from the College of Natural Sciences. Directions for WordPress Add a new Row [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-3294","post","type-post","status-publish","format-standard","hentry","category-general-cnsit"],"_links":{"self":[{"href":"https:\/\/cnsit.colostate.edu\/kb\/wp-json\/wp\/v2\/posts\/3294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cnsit.colostate.edu\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cnsit.colostate.edu\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cnsit.colostate.edu\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/cnsit.colostate.edu\/kb\/wp-json\/wp\/v2\/comments?post=3294"}],"version-history":[{"count":2,"href":"https:\/\/cnsit.colostate.edu\/kb\/wp-json\/wp\/v2\/posts\/3294\/revisions"}],"predecessor-version":[{"id":4304,"href":"https:\/\/cnsit.colostate.edu\/kb\/wp-json\/wp\/v2\/posts\/3294\/revisions\/4304"}],"wp:attachment":[{"href":"https:\/\/cnsit.colostate.edu\/kb\/wp-json\/wp\/v2\/media?parent=3294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cnsit.colostate.edu\/kb\/wp-json\/wp\/v2\/categories?post=3294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cnsit.colostate.edu\/kb\/wp-json\/wp\/v2\/tags?post=3294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}