{"id":452,"date":"2023-10-25T15:24:11","date_gmt":"2023-10-25T19:24:11","guid":{"rendered":"https:\/\/carleton.ca\/cutheme-docs\/?page_id=452"},"modified":"2024-09-18T20:31:31","modified_gmt":"2024-09-19T00:31:31","slug":"text-image","status":"publish","type":"page","link":"https:\/\/carleton.ca\/cutheme-docs\/getting-started\/module-3-basic-building-blocks\/basic-image-blocks\/text-image\/","title":{"rendered":"Text &#038; Image"},"content":{"rendered":"\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n            <div class=\"cu-textmedia flex flex-col lg:flex-row mx-auto gap-6 md:gap-10 my-6 md:my-12 first:mt-0 max-w-5xl\">\n        <div class=\"justify-start cu-textmedia-content cu-prose-first-last\" style=\"flex: 0 0 100%;\">\n            <header class=\"font-light prose-xl cu-pageheader md:prose-2xl cu-component-updated cu-prose-first-last\">\n                                    <h1 class=\"cu-prose-first-last font-semibold !mt-2 mb-4 md:mb-6 relative after:absolute after:h-px after:bottom-0 after:bg-cu-red after:left-px text-3xl md:text-4xl lg:text-5xl lg:leading-[3.5rem] pb-5 after:w-10 text-cu-black-700 not-prose\">\n                        Text &#038; Image\n                    <\/h1>\n                \n                                \n                                    \n\n\n<p>Module 3.3.2 \u2013 Getting Started: Basic Building Blocks: Basic Image Blocks: Text &amp; Image<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/carleton.ca\/cutheme-docs\/block-library\/image-blocks\/text-image\/\">Examples: Text &amp; Image<\/a><\/div>\n<\/div>\n\n\n\n                            <\/header>\n\n                    <\/div>\n\n            <\/div>\n\n    <\/div>\n<\/section>\n\n\n\n<p>Module 3.3.1 \u2013 Getting Started: Basic Building Blocks: Basic Image Blocks: Image<\/p>\n\n\n\n\n<div class=\"w-full max-w-xl mx-auto overflow-hidden bg-white rounded-lg shadow-lg cu-stackedlist cu-component not-contained not-prose\">\n    <h2 class=\"px-6 py-4 text-base font-semibold border-b rounded-t-lg md:text-xl bg-gray-50 text-cu-black-800\">\n        Table of Contents\n    <\/h2>\n    <div class=\"grid cu-scrollto cu-stackedlist--toc cu-stackedlist--1 md:grid-cols-1\">\n            <div class=\"space-y-1\">\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        1.\n                    <\/span>\n\n                    <a href=\"#step-by-step\" class=\"font-medium hover:underline\">\n                        Step-by-Step\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        2.\n                    <\/span>\n\n                    <a href=\"#video-tutorial\" class=\"font-medium hover:underline\">\n                        Video Tutorial\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        3.\n                    <\/span>\n\n                    <a href=\"#try-it-out\" class=\"font-medium hover:underline\">\n                        Try it Out\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n            <\/div>\n\n    <\/div>\n<\/div>\n\n\n\n<p>The Text-Image block allows editors to include pieces of text along with an accompanying image. This is yet another great way to add visuals to your pages and posts.<\/p>\n\n\n\n<p>The text &amp; image block is also a great option to use as a page banner. It can be used with or without an image (see the top of this page for example).<\/p>\n\n\n\n<p>Below is an example of a Text &amp; Image block using an image that is right aligned.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1896\" height=\"722\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-12.42.11@2x.png\" alt=\"Text and Image block example\" class=\"wp-image-1384\" style=\"aspect-ratio:2.6260387811634347;width:953px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-12.42.11@2x.png 1896w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-12.42.11@2x-320x122.png 320w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-12.42.11@2x-512x195.png 512w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-12.42.11@2x-768x292.png 768w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-12.42.11@2x-1024x390.png 1024w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-12.42.11@2x-1536x585.png 1536w\" sizes=\"auto, (max-width: 1896px) 100vw, 1896px\" \/><\/figure>\n\n\n\n<h2 id=\"step-by-step\" class=\"wp-block-heading\">Step-by-Step<\/h2>\n\n\n\n<p><strong class=\"myprefix-text-bold\">1.<\/strong> <a href=\"https:\/\/carleton.ca\/cutheme-docs\/getting-started\/module-3-essential-text-blocks\/module-3-blocks-overview\/#addblock\">Add the&nbsp;Text Image&nbsp;block using the block menu<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"176\" height=\"148\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/10\/CleanShot-2023-10-25-at-15.41.35@2x.png\" alt=\"Add a Text &amp; Image block\" class=\"wp-image-465\" style=\"aspect-ratio:1.1891891891891893;width:85px;height:auto\"\/><\/figure>\n\n\n\n<p><strong class=\"myprefix-text-bold\">2.<\/strong> Give the block a title.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1966\" height=\"378\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-14.53.39@2x.png\" alt=\"\" class=\"wp-image-1489\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-14.53.39@2x.png 1966w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-14.53.39@2x-320x62.png 320w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-14.53.39@2x-512x98.png 512w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-14.53.39@2x-768x148.png 768w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-14.53.39@2x-1024x197.png 1024w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-14.53.39@2x-1536x295.png 1536w\" sizes=\"auto, (max-width: 1966px) 100vw, 1966px\" \/><\/figure>\n\n\n\n<p><strong class=\"myprefix-text-bold\">3.<\/strong> Use the block options at the right to add content. This can be text or a button.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Use a wide block (available when the block is not the first element\/banner on a page)<\/li>\n\n\n\n<li>Add content (text or a button)<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"482\" height=\"230\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/04\/CleanShot-2024-04-16-at-12.50.30@2x.png\" alt=\"Block options\" class=\"wp-image-3385\" style=\"width:291px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/04\/CleanShot-2024-04-16-at-12.50.30@2x.png 482w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/04\/CleanShot-2024-04-16-at-12.50.30@2x-320x153.png 320w\" sizes=\"auto, (max-width: 482px) 100vw, 482px\" \/><\/figure>\n\n\n\n<p>4. You can also add an image using the <strong class=\"myprefix-text-bold\">Select Image<\/strong> button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"188\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-15.01.20@2x.png\" alt=\"Select image\" class=\"wp-image-1493\" style=\"width:297px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-15.01.20@2x.png 502w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2023\/11\/CleanShot-2023-11-08-at-15.01.20@2x-320x120.png 320w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<p><strong class=\"myprefix-text-bold\">5. <\/strong>Once you add an image, you can use the image options to customize the look and feel.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Set the image position to the left or right<\/li>\n\n\n\n<li>Choose whether or not to display the image on mobile<\/li>\n\n\n\n<li>Adjust the relative position of the image within the block<\/li>\n\n\n\n<li>Replace or Remove the image using these buttons<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"462\" height=\"798\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/04\/CleanShot-2024-04-16-at-12.58.12@2x.png\" alt=\"Image options\" class=\"wp-image-3386\" style=\"width:289px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/04\/CleanShot-2024-04-16-at-12.58.12@2x.png 462w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/04\/CleanShot-2024-04-16-at-12.58.12@2x-320x553.png 320w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/carleton.ca\/cutheme-docs\/block-library\/text-image\/\">See more examples<\/a> in our block library!<\/p>\n\n\n\n<h2 id=\"video-tutorial\" class=\"wp-block-heading\">Video Tutorial<\/h2>\n\n\n\n<div class=\"cu-section cu-section-5xl not-contained  cu-prose cu-prose-dark\"><figure class=\"cu-embed cu-component not-contained mx-auto max-w-5xl\"><div class=\"relative w-full pb-[56.25%] overflow-hidden border border-cu-black-100\"><iframe title=\"Videos Embed\" src=\"https:\/\/www.youtube.com\/embed\/9IwOs1-ooPQ\" class=\"cu-embed-iframe\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/div><\/figure><\/div>\n\n\n\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n        \n    \n    <dl class=\"cu-description cu-component-updated\">\n        \n    <div class=\"grid pt-4 pb-3 border-b accordion border-cu-black-100 md:pt-6 md:pb-5 first:border-t\">\n        <dt class=\"font-semibold not-prose\">\n            <button class=\"flex items-center justify-between w-full text-left accordion__button\" aria-expanded=\"false\" aria-controls=\"accordion-transcript-text-image-block\">\n                <span class=\"flex-1 ml-auto text-left break-words whitespace-normal cu-icon\">\n                    <strong class=\"myprefix-text-bold\">Transcript<\/strong> &#8211; Text &amp; Image Block\n                <\/span>\n                <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" class=\"w-5 h-5 ml-auto transition-transform rotate-0 accordion__icon text-cu-black-500\">\n                    <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.25 4.5l7.5 7.5-7.5 7.5\"><\/path>\n                <\/svg>\n            <\/button>\n        <\/dt>\n        <dd class=\"p-0 mt-0 cu-prose cu-prose-first-last accordion__content md:p-0 md:mt-0\" hidden=\"\" id=\"accordion-transcript-text-image-block\">\n            \n\n<p>Welcome to getting started with CuTheme Module 3. This video is going to introduce you to the text and image block.&nbsp;<\/p>\n\n\n\n<p>As the name suggests, this block is used to display text &#8211; like a title and some content along with an image.&nbsp;<\/p>\n\n\n\n<p>When you create a new page, the block at the top of the page, or the page banner, is a text and image banner by default. You can also add a text and image block anywhere else on your page using the block menu.&nbsp;<\/p>\n\n\n\n<p>The text and image block is made up of three main pieces &#8211; the title, the text or the content, and the image which is optional. Here&#8217;s one with an image. And you can also add a button like we have right here.&nbsp;<\/p>\n\n\n\n<p>By default, the only option that appears is the title. So let&#8217;s go ahead and give this block a title.&nbsp;<\/p>\n\n\n\n<p>To add other content, such as the text buttons and images, click the add content button under the block options. Once you click that, you see that you&#8217;ll have an area to add text, up to 250 characters, as well as a button or two.&nbsp;<\/p>\n\n\n\n<p>You can just go ahead and type content right into the block area. And you can also add a button below the text by adding a button block and then giving your button a name as well as a link.<\/p>\n\n\n\n<p>The next part of the block is the image. To add an image, you click this blue&nbsp;<strong>select image<\/strong>&nbsp;button over here at the right. And you can either grab something from your image gallery or upload it from your computer.<\/p>\n\n\n\n<p>Let&#8217;s grab this cupcake. Some options for the image &#8211; you can either have it on the left or the right of the image block, you can drag this around to move the center of the image to position it, and you can use these buttons to replace or remove the images.&nbsp;&nbsp;<\/p>\n\n\n        <\/dd>\n    <\/div>\n\n\n    <\/dl>\n\n\n    <\/div>\n<\/section>\n\n\n\n<h2 id=\"try-it-out\" class=\"wp-block-heading\">Try it Out<\/h2>\n\n\n\n<p>Now that you have learned how to work with the Text-Image block, it&#8217;s time to try it out!<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Add a Text &amp; Image block to a page.<\/li>\n\n\n\n<li>Add a heading and some text to the text.<\/li>\n\n\n\n<li>Add an image.<\/li>\n\n\n\n<li>Change the image position.<\/li>\n\n\n\n<li>Preview your results on the front end.<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/carleton.ca\/cutheme-docs\/getting-started\/module-3-basic-building-blocks\/basic-image-blocks\/wide-image\/\">Next: Wide Image<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Module 3.3.1 \u2013 Getting Started: Basic Building Blocks: Basic Image Blocks: Image The Text-Image block allows editors to include pieces of text along with an accompanying image. This is yet another great way to add visuals to your pages and posts. The text &amp; image block is also a great option to use as a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":322,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_cu_dining_location_slug":"","footnotes":"","_links_to":"","_links_to_target":""},"cu_page_type":[11],"class_list":["post-452","page","type-page","status-publish","hentry","cu_page_type-general"],"acf":{"cu_post_thumbnail":false},"_links":{"self":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/comments?post=452"}],"version-history":[{"count":5,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/452\/revisions"}],"predecessor-version":[{"id":4307,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/452\/revisions\/4307"}],"up":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/322"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/media?parent=452"}],"wp:term":[{"taxonomy":"cu_page_type","embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/cu_page_type?post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}