{"id":1782,"date":"2021-09-20T10:51:37","date_gmt":"2021-09-20T09:51:37","guid":{"rendered":"https:\/\/allbootstrapblocks.com\/?page_id=1782"},"modified":"2021-10-09T09:51:09","modified_gmt":"2021-10-09T08:51:09","slug":"card","status":"publish","type":"page","link":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/","title":{"rendered":"Card"},"content":{"rendered":"\r\n\t\t<div  class=\"block-5d64d843-d9a1-4234-81e1-4e4e2556a46f 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 cards <a href=\"https:\/\/getbootstrap.com\/docs\/5.1\/components\/card\/\" 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 card block gives you the ability to add Bootstrap cards to your page. When you add a card you gain access to additional blocks: Card Header, Card Body and Card Footer. Each of these blocks has the same options available as the main card block so rather than detailing each we have just detailed the card blocks settings as all of the other blocks work in the same way and have the same options available.<\/p>\n\n\n\r\n\t\t<div  class=\"block-68adce3f-4b23-47be-ab61-3fe0a934cfe1 card\">\r\n\t\t\t\n\r\n\t\t<div  class=\"block-b8afc2dc-3979-4cad-b46e-6fe91e218329 card-header\">\r\n\t\t\t\n\n<p>Header<\/p>\n\n \r\n\t\t<\/div>\r\n\t\n\n\r\n\t\t<div  class=\"block-44a28a89-a32d-40f1-81f6-26fff5d6786e card-body\">\r\n\t\t\t\n\n<p>Sweet roll donut jelly beans jelly beans muffin. Cupcake jujubes bonbon shortbread lollipop. Bonbon brownie bonbon halvah lollipop gummi bears jujubes. Bear claw bonbon macaroon jujubes toffee chocolate cake muffin.<\/p>\n\n \r\n\t\t<\/div>\r\n\t\n\n\r\n\t\t<div  class=\"block-28b1f413-3fd7-41b4-89f3-93647af6f0de card-footer\">\r\n\t\t\t\n\n<p>Footer<\/p>\n\n \r\n\t\t<\/div>\r\n\t\n \r\n\t\t<\/div>\r\n\t\n\n\n<p><\/p>\n\n\n\n<p>The card block had the following settings:<\/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\">Background<\/h3>\n\n\n\n<p>The background option allows you to change the background colour of a card by selecting from the predefined Bootstrap theme colours. The options available are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Primary<\/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=\"267\" height=\"123\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-79.png\" alt=\"\" class=\"wp-image-3528\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Text Color<\/h3>\n\n\n\n<p>The text color option allows you to change the text colour of a card by selecting from the predefined Bootstrap theme colours. The options available are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Primary<\/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=\"274\" height=\"127\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-80.png\" alt=\"\" class=\"wp-image-3529\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Border Color<\/h3>\n\n\n\n<p>The border color option allows you to change the border colour of a card by selecting from the predefined Bootstrap theme colours. The options available are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Primary<\/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=\"137\" src=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-81.png\" alt=\"\" class=\"wp-image-3531\"\/><\/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 card 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-1782","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>Card | 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\/card\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Card | All Bootstrap Blocks\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the card block.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/\" \/>\n<meta property=\"og:site_name\" content=\"All Bootstrap Blocks\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-09T08:51:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-79.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\/card\/\",\"url\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/\",\"name\":\"Card | All Bootstrap Blocks\",\"isPartOf\":{\"@id\":\"https:\/\/allbootstrapblocks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-79.png\",\"datePublished\":\"2021-09-20T09:51:37+00:00\",\"dateModified\":\"2021-10-09T08:51:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/#primaryimage\",\"url\":\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-79.png\",\"contentUrl\":\"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-79.png\",\"width\":267,\"height\":123},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/#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\":\"Card\"}]},{\"@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":"Card | 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\/card\/","og_locale":"en_GB","og_type":"article","og_title":"Card | All Bootstrap Blocks","og_description":"Learn how to use the card block.","og_url":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/","og_site_name":"All Bootstrap Blocks","article_modified_time":"2021-10-09T08:51:09+00:00","og_image":[{"url":"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-79.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\/card\/","url":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/","name":"Card | All Bootstrap Blocks","isPartOf":{"@id":"https:\/\/allbootstrapblocks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/#primaryimage"},"image":{"@id":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/#primaryimage"},"thumbnailUrl":"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-79.png","datePublished":"2021-09-20T09:51:37+00:00","dateModified":"2021-10-09T08:51:09+00:00","breadcrumb":{"@id":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/#primaryimage","url":"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-79.png","contentUrl":"https:\/\/allbootstrapblocks.com\/wp-content\/uploads\/2021\/10\/image-79.png","width":267,"height":123},{"@type":"BreadcrumbList","@id":"https:\/\/allbootstrapblocks.com\/all-bootstrap-blocks\/documentation\/components\/card\/#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":"Card"}]},{"@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\/1782","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=1782"}],"version-history":[{"count":11,"href":"https:\/\/allbootstrapblocks.com\/wp-json\/wp\/v2\/pages\/1782\/revisions"}],"predecessor-version":[{"id":3535,"href":"https:\/\/allbootstrapblocks.com\/wp-json\/wp\/v2\/pages\/1782\/revisions\/3535"}],"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=1782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}