{"id":817,"date":"2025-03-24T14:27:45","date_gmt":"2025-03-24T14:27:45","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/gd-notifications\/"},"modified":"2025-04-03T15:24:06","modified_gmt":"2025-04-03T14:24:06","slug":"gd-notifications","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-notifications\/","title":{"rendered":"GD > Notifications"},"content":{"rendered":"<section class=\"alert alert-success dashed\">\n\t All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/what-makes-geodirectory-widgets-special\/\">Super Duper Widgets<\/a>.<\/section>\n<p>\n\t The <strong><em>Notifications<\/em><\/strong> widget has two purposes. Usually <strong>placed at the top of most template pages<\/strong>, the widget can show <strong>standard notifications to users <\/strong>such as letting them know that a listing has closed down. This widget will <strong>also show admin hints<\/strong>, which will show notifications only visible to admins of the site that will give them <strong>hints about the current page they are viewing<\/strong>.<\/p>\n<h2>Widget Options<\/h2>\n<p> <em>This widget has no options.<\/em><\/p>\n<h2>Example Output<\/h2>\n<p>\n\t User notification that a place has closed down.<\/p>\n<p>\n\t <img width=\"648\" height=\"153\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-CvXDP5ldhr.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-CvXDP5ldhr.png 648w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-CvXDP5ldhr-300x71.png 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/p>\n<p>\n\t Admin Hints<\/p>\n<p>\n\t <img width=\"614\" height=\"209\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-7Zez7kffFR.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-7Zez7kffFR.png 614w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-7Zez7kffFR-300x102.png 300w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/p>\n<p>\n\t Test notifications, by default the notifications widget might not show anything on the front end and you may be unsure of positionaing, <strong>to test the notifications you can add \/?<\/strong><strong>gd_notifications_test=true to the URL<\/strong> to show some test messages<\/p>\n<p>\n\t <img width=\"605\" height=\"227\" src=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-Gk29pZgNjx.png\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-Gk29pZgNjx.png 605w, https:\/\/wpgeodirectory.com\/documentation\/wp-content\/uploads\/2025\/03\/file-Gk29pZgNjx-300x113.png 300w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/p>\n<h2>How to Change the Color of Alerts?<\/h2>\n<p>You can change the color of alerts and notifications show by <strong>GD &gt; Notifications <\/strong>widget by adding the following custom CSS to your site, using the <strong>Appearance &gt; Customize &gt; Additional CSS <\/strong>section:&nbsp;<\/p>\n<pre>.bsui .alert-info {     \n\tcolor: #fff;     \n\tbackground-color: #005563;     \n\tborder-color: #000b0c; }<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>All Widgets come as Widgets, Shortcodes or Blocks. Learn more about our Super Duper Widgets. The Notifications widget has two purposes. Usually placed at the top of most template pages, the widget can show standard notifications to users such as letting them know that a listing has closed down. This widget will also show admin [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,422],"class_list":["post-817","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-core-widgets"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=817"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/817\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=817"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=817"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}