{"id":1776,"date":"2021-09-20T10:50:54","date_gmt":"2021-09-20T09:50:54","guid":{"rendered":"https:\/\/allbootstrapblocks.com\/?page_id=1776"},"modified":"2021-10-08T16:58:43","modified_gmt":"2021-10-08T15:58:43","slug":"alert","status":"publish","type":"page","link":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/","title":{"rendered":"Alert"},"content":{"rendered":"\r\n\t\t<div  class=\"block-67468b30-45a6-4cf5-a520-60477da403df alert alert-info\" role=\"alert\">\r\n\t\t\t\r\n\t\t\t<div>\n\n<p>Read the original Bootstrap documentation on alerts <a href=\"https:\/\/getbootstrap.com\/docs\/5.1\/components\/alerts\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n<\/div>\r\n\t\t\t \r\n\t\t<\/div>\r\n\t\n\n\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>The alert block allows you to display contextual feedback messages for typical user actions and can be customised using the Bootstrap theme options. The alert block allows you to insert any inner content you like.<\/p>\n\n\n\r\n\t\t<div  class=\"block-3e2ad3ec-60d7-4acc-aad7-76fc8e2d1ac1 alert alert-warning\" role=\"alert\">\r\n\t\t\t\r\n\t\t\t<div>\n\n<p>My first alert block<\/p>\n\n<\/div>\r\n\t\t\t \r\n\t\t<\/div>\r\n\t\n\n\r\n\t\t<div  class=\"block-8eff1ad2-8e14-47bd-96e7-bcf0cb97dd06 alert alert-info alert-dismissible fade show\" role=\"alert\">\r\n\t\t\t\r\n\t\t\t<div>\n\n<p>My second alert block<\/p>\n\n<\/div>\r\n\t\t\t<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"><\/button> \r\n\t\t<\/div>\r\n\t\n\n\r\n\t\t<div  class=\"block-843df23f-114c-4e7f-9419-71228766bdd3 alert alert-danger\" role=\"alert\">\r\n\t\t\t\r\n\t\t\t<div>\n\n<p>My third alert block<\/p>\n\n<\/div>\r\n\t\t\t \r\n\t\t<\/div>\r\n\t\n\n\r\n\t\t<div  class=\"block-a61df783-f784-476f-8f6d-41371ca44705 alert alert-secondary d-flex align-items-center\" role=\"alert\">\r\n\t\t\t<img loading=\"lazy\" decoding=\"async\" class=\"icon bi flex-shrink-0 me-2\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/09\/android-chrome-512x512-1.png\" width=\"512\" height=\"512\" alt=\"\">\r\n\t\t\t<div>\n\n<p>My fourth alert block<\/p>\n\n<\/div>\r\n\t\t\t \r\n\t\t<\/div>\r\n\t\n\n\n<p>The following options available:<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Settings<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Style<\/h3>\n\n\n\n<p>The style options allows you to choose from a list of theme colours. By selecting a theme colour the alert block background, text and border colour will be updated to match the theme option. There are 8 options available:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Primary: Selected as default<\/li><li>Secondary<\/li><li>Success<\/li><li>Danger<\/li><li>Warning<\/li><li>Info<\/li><li>Light<\/li><li>Dark<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full border rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"275\" height=\"155\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-35.png\" alt=\"\" class=\"wp-image-3316\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Icon<\/h3>\n\n\n\n<p>The icon option allows you to upload an image that will be displayed to the left of the alert block. To add an icon click the <strong>Choose icon<\/strong> button then upload or select an image.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full border rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"271\" height=\"146\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-36.png\" alt=\"\" class=\"wp-image-3317\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Display close button<\/h3>\n\n\n\n<p>The display close button option allows you to include a close button on the alert and when a user clicks the button the alert block will be removed from the page. As default the close button isn&#8217;t displayed, by checking this option the close button will be displayed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full rounded border\"><img loading=\"lazy\" decoding=\"async\" width=\"267\" height=\"123\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-37.png\" alt=\"\" class=\"wp-image-3319\"\/><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Device specific settings<\/h2>\n\n\n\n<p>Along with global options for a block there are also device specific settings. These settings allow you to specify options that will be applied to their relevant device size. The device sizes available match up with the Bootstrap breakpoints: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>XS (&lt;576px)<\/li><li>SM (\u2265576px)<\/li><li>MD (\u2265768px)<\/li><li>LG (\u2265992px)<\/li><li>XL (\u22651200px)<\/li><li>XXL (\u22651400px). <\/li><\/ul>\n\n\n\n<p>Device specific settings are tabbed and to update a specific device you simply need to click on the relevant tab to reveal the options. Each device has the same options available. For the purpose of these docs we only explain one device tab (as all of the other tabs are the same for their related breakpoint).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full border rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"274\" height=\"177\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-13.png\" alt=\"\" class=\"wp-image-3127\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Highlighted Tabs<\/h3>\n\n\n\n<p>Due to there being options for a number of different device sizes it could become confusing remembering which settings you have chosen. To help, when you make a change in a specific device tab the tab will be highlighted green. If all of the values in the tab are reverted back to the default then the highlight will disappear.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full  border rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"283\" height=\"217\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2022\/04\/highlight.png\" alt=\"\" class=\"wp-image-4736\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Hide on XS<\/h4>\n\n\n\n<p>You can hide this block on any device. As default all blocks are displayed. If you wish to hide a block on a specific device you can check this option. This option will only apply to the related device. To hide on other devices, click on the relevant device tab and check the Hide on [device] option.<\/p>\n\n\n\n<figure class=\"wp-block-image border rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"268\" height=\"96\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-15.png\" alt=\"\" class=\"wp-image-3145\"\/><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Reset Settings<\/h2>\n\n\n\n<p>Blocks tend to have a large number of settings along with different settings for each device size. You may get to the point where you have changed lots of settings and want to revert them back to the default. This can be time consuming and difficult to remember which settings have been changed to we have supplied three buttons that make this a piece of cake. Simply click the relevant button to reset your settings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"275\" height=\"233\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2022\/04\/reset.png\" alt=\"\" class=\"wp-image-4740\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>All:<\/strong> When you click this button is will reset all of the settings for the selected block<\/li><li><strong>Global:<\/strong> When you click this button it will reset all of the settings outside of the device specific tabs<\/li><li><strong>Devices:<\/strong> When you click this button it will reset all of the settings within the Device Specific tabs<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Advanced<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">HTML Anchor<\/h3>\n\n\n\n<p>The HTML anchor option allows you to set an ID on the current block. This is useful when you wish to link to a specific area on a page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full border rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"268\" height=\"164\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-18.png\" alt=\"\" class=\"wp-image-3149\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Additional CSS class(es)<\/h3>\n\n\n\n<p>The additional class(es) option lets you add any other classes to the block. This is really useful as it allows you to utilise all of the Bootstrap utility classes to quickly apply styles and add more advanced customisations. A few examples of this would be to align all inner content by adding the <code>text-start<\/code>, <code>text-center<\/code> or <code>text-end<\/code> classes. You also have the ability to quickly search all of the available Bootstrap classes. To search Bootstrap classes open the <strong>Add Bootstrap class<\/strong> select box. You can filter the results by typing in the available search field. When you select an option it will automatically be added to your class list.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full border rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"276\" height=\"159\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2022\/02\/2720748d-9de5-4a64-8f22-86eff68132f5.png\" alt=\"\" class=\"wp-image-4527\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to use the alert block.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2960,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/docs-page.php","meta":{"footnotes":""},"class_list":["post-1776","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Alert | All Bootstrap Blocks<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Alert | All Bootstrap Blocks\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the alert block.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/\" \/>\n<meta property=\"og:site_name\" content=\"All Bootstrap Blocks\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-08T15:58:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-35.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/\",\"url\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/\",\"name\":\"Alert | All Bootstrap Blocks\",\"isPartOf\":{\"@id\":\"https:\/\/allbootstrapblocks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-35.png\",\"datePublished\":\"2021-09-20T09:50:54+00:00\",\"dateModified\":\"2021-10-08T15:58:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/#primaryimage\",\"url\":\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-35.png\",\"contentUrl\":\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-35.png\",\"width\":275,\"height\":155},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/allbootstrapblocks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"All Bootstrap Blocks\",\"item\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Documentation\",\"item\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Component blocks\",\"item\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Alert\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/allbootstrapblocks.com\/#website\",\"url\":\"https:\/\/allbootstrapblocks.com\/\",\"name\":\"All Bootstrap Blocks\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/allbootstrapblocks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/allbootstrapblocks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/allbootstrapblocks.com\/#organization\",\"name\":\"AREOI\",\"url\":\"https:\/\/allbootstrapblocks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/allbootstrapblocks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/areoi-wp.local\/wp-content\/uploads\/2021\/09\/android-chrome-512x512-1.png\",\"contentUrl\":\"https:\/\/areoi-wp.local\/wp-content\/uploads\/2021\/09\/android-chrome-512x512-1.png\",\"width\":512,\"height\":512,\"caption\":\"AREOI\"},\"image\":{\"@id\":\"https:\/\/allbootstrapblocks.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Alert | All Bootstrap Blocks","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/","og_locale":"en_GB","og_type":"article","og_title":"Alert | All Bootstrap Blocks","og_description":"Learn how to use the alert block.","og_url":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/","og_site_name":"All Bootstrap Blocks","article_modified_time":"2021-10-08T15:58:43+00:00","og_image":[{"url":"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-35.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/","url":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/","name":"Alert | All Bootstrap Blocks","isPartOf":{"@id":"https:\/\/allbootstrapblocks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/#primaryimage"},"image":{"@id":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/#primaryimage"},"thumbnailUrl":"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-35.png","datePublished":"2021-09-20T09:50:54+00:00","dateModified":"2021-10-08T15:58:43+00:00","breadcrumb":{"@id":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/#primaryimage","url":"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-35.png","contentUrl":"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-35.png","width":275,"height":155},{"@type":"BreadcrumbList","@id":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/alert\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/allbootstrapblocks.com\/"},{"@type":"ListItem","position":2,"name":"All Bootstrap Blocks","item":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/"},{"@type":"ListItem","position":4,"name":"Component blocks","item":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/"},{"@type":"ListItem","position":5,"name":"Alert"}]},{"@type":"WebSite","@id":"https:\/\/allbootstrapblocks.com\/#website","url":"https:\/\/allbootstrapblocks.com\/","name":"All Bootstrap Blocks","description":"","publisher":{"@id":"https:\/\/allbootstrapblocks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/allbootstrapblocks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/allbootstrapblocks.com\/#organization","name":"AREOI","url":"https:\/\/allbootstrapblocks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/allbootstrapblocks.com\/#\/schema\/logo\/image\/","url":"https:\/\/areoi-wp.local\/wp-content\/uploads\/2021\/09\/android-chrome-512x512-1.png","contentUrl":"https:\/\/areoi-wp.local\/wp-content\/uploads\/2021\/09\/android-chrome-512x512-1.png","width":512,"height":512,"caption":"AREOI"},"image":{"@id":"https:\/\/allbootstrapblocks.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/allbootstrapblocks.com\/wp-json\/wp\/v2\/pages\/1776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/allbootstrapblocks.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/allbootstrapblocks.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/allbootstrapblocks.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/allbootstrapblocks.com\/wp-json\/wp\/v2\/comments?post=1776"}],"version-history":[{"count":9,"href":"https:\/\/allbootstrapblocks.com\/wp-json\/wp\/v2\/pages\/1776\/revisions"}],"predecessor-version":[{"id":3390,"href":"https:\/\/allbootstrapblocks.com\/wp-json\/wp\/v2\/pages\/1776\/revisions\/3390"}],"up":[{"embeddable":true,"href":"https:\/\/allbootstrapblocks.com\/wp-json\/wp\/v2\/pages\/2960"}],"wp:attachment":[{"href":"https:\/\/allbootstrapblocks.com\/wp-json\/wp\/v2\/media?parent=1776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}