{"id":3070,"date":"2022-04-27T22:11:47","date_gmt":"2022-04-27T22:11:47","guid":{"rendered":"http:\/\/wordpress.library.illinois.edu\/wp-training\/?page_id=3070"},"modified":"2024-05-02T16:33:26","modified_gmt":"2024-05-02T16:33:26","slug":"image-gallery","status":"publish","type":"page","link":"https:\/\/wordpress.library.illinois.edu\/wp-training\/shortcodes\/image-gallery\/","title":{"rendered":"Image Gallery"},"content":{"rendered":"<h2>When to use<\/h2>\n<p>Use image gallery to display multiple images in a row. Each image has a text overlay that has a background color and is linked to a webpage. The font size and weight of the text overlay and the opacity of the background color can be customized.<\/p>\n<h2>Basic usage<\/h2>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-blue-100 !sh-text-black \"><div><div class=\"\"><div class=\"shortcode sh-grid sh-grid-cols-1 md:sh-grid-cols-12 sh-gap-3\"><div class=\"shortcode sh-col-span-4 sh-pb-3\"><\/p>\n<h3>Code<\/h3>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\">[image-gallery]<\/div><\/div><\/div><\/div><div class=\"shortcode sh-col-span-8 sh-pb-3\"><\/p>\n<h3>Rendering<\/h3>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><div id=\"image_gallery_container\" class=\"flex flex-row sh-gap-4\">\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Title 1\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/ACES.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.library.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Title 2\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/UI-08-210714-067-2.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/p>\n<h2>Attributes<\/h2>\n<p>Use the following 9 attributes to customize the image gallery:<\/p>\n<h3>order<\/h3>\n<p>The <strong>order<\/strong> attribute determines if the images are ordered in a row or in a column. In case the attribute is empty, the default order is row.<\/p>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-blue-100 !sh-text-black \"><div><div class=\"\"><div class=\"shortcode sh-grid sh-grid-cols-1 md:sh-grid-cols-12 sh-gap-3\"><div class=\"shortcode sh-col-span-4 sh-pb-3\"><\/p>\n<h3>Column<\/h3>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\">[image-gallery order=\"column\"] <div id=\"image_gallery_container\" class=\"flex flex-col sh-gap-4\">\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Title 1\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/ACES.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.library.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Title 2\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/UI-08-210714-067-2.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div><\/div> <\/div><\/div><\/div><\/div><div class=\"shortcode sh-col-span-8 sh-pb-3\"><\/p>\n<h3>Row<\/h3>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\">[image-gallery order=\"row\"] <div id=\"image_gallery_container\" class=\"flex flex-row sh-gap-4\">\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Title 1\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/ACES.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.library.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Title 2\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/UI-08-210714-067-2.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/p>\n<h3>image<\/h3>\n<p>The <strong>image<\/strong> attribute determines what images to display. Separate the URLs of the images by <strong>comma<\/strong> with no space in between.<\/p>\n<div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-blue-100 !sh-text-black \"><div><div class=\"\">\n<h4>Code<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\">[image-gallery image=\"https:\/\/www.library.illinois.edu\/mpal\/wp-content\/uploads\/sites\/17\/2019\/08\/Theatre-Resources.jpg,https:\/\/www.library.illinois.edu\/mpal\/wp-content\/uploads\/sites\/17\/2019\/08\/dance.jpg\"]<\/div><\/div><\/div><\/p>\n<h4>Rendering<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><div id=\"image_gallery_container\" class=\"flex flex-row sh-gap-4\">\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Title 1\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/mpal\/wp-content\/uploads\/sites\/17\/2019\/08\/Theatre-Resources.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.library.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Title 2\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/mpal\/wp-content\/uploads\/sites\/17\/2019\/08\/dance.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/p>\n<h3>alt<\/h3>\n<p>The <b>alt <\/b>attribute lets you define the alt text for the images included in the &#8220;image&#8221; attribute. The ALTs are <strong>separated by a comma<\/strong> with no space in between.<\/p>\n<p><strong>Example<\/strong>: [image-gallery alt=\"img description,img description\"]<\/p>\n<h3>link<\/h3>\n<p>The <strong>link<\/strong> attribute lets you define what page an image links to. The URLs are <strong>separated by a comma<\/strong> with no space in between.<\/p>\n<div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-blue-100 !sh-text-black \"><div><div class=\"\">\n<h4>Code<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\">[image-gallery\u00a0link=&#8221;https:\/\/www.library.illinois.edu,https:\/\/www.illinois.edu&#8221;]<\/div><\/div><\/div><\/p>\n<h4>Rendering<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><div id=\"image_gallery_container\" class=\"flex flex-row sh-gap-4\">\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.library.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Title 1\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/ACES.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Title 2\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/UI-08-210714-067-2.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/p>\n<h3>title<\/h3>\n<p>The <strong>title<\/strong> attribute defines the text overlay at the bottom of the image. The default value is &#8220;<strong>Title 1<\/strong>&#8221; and &#8220;<strong>Title 2<\/strong>&#8220;. Titles are <strong>separated by the pipe character |<\/strong> with no space in between.<\/p>\n<div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-blue-100 !sh-text-black \"><div><div class=\"\">\n<h4>Code<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\">[image-gallery title=\"About|Support\"]<\/div><\/div><\/div><\/p>\n<h4>Rendering<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><div id=\"image_gallery_container\" class=\"flex flex-row sh-gap-4\">\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            About\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/ACES.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.library.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Support\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/UI-08-210714-067-2.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/p>\n<h3>font-size<\/h3>\n<p>The <strong>font-size<\/strong> attribute lets you set the size of the text overlay. The default value is &#8220;<strong>16px<\/strong>&#8220;.<\/p>\n<div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-blue-100 !sh-text-black \"><div><div class=\"\">\n<h4>Code<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\">[image-gallery font-size=\"24px\"]<\/div><\/div><\/div><\/p>\n<h4>Rendering<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><div id=\"image_gallery_container\" class=\"flex flex-row sh-gap-4\">\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 24px; font-weight: normal;\">\n            Title 1\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/ACES.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.library.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 24px; font-weight: normal;\">\n            Title 2\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/UI-08-210714-067-2.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/p>\n<h3>font-weight<\/h3>\n<p>The <strong>font-weight<\/strong> attribute defines how bold or light the text appears. The default value is &#8220;<strong>normal<\/strong>&#8220;. You can set it using one of the following numeric values:<\/p>\n<ul>\n<li>font-weight=&#8221;100&#8243;<\/li>\n<li>font-weight=&#8221;200&#8243;<\/li>\n<li>font-weight=&#8221;300&#8243;<\/li>\n<li>font-weight=&#8221;400&#8243; (normal)<\/li>\n<li>font-weight=&#8221;500&#8243;<\/li>\n<li>font-weight=&#8221;600&#8243;<\/li>\n<li>font-weight=&#8221;700&#8243; (<strong>bold<\/strong>)<\/li>\n<li>font-weight=&#8221;800&#8243;<\/li>\n<li>font-weight=&#8221;900&#8243;<\/li>\n<\/ul>\n<p>or a keyword value:<\/p>\n<ul>\n<li>font-weight=&#8221;normal&#8221;<\/li>\n<li>font-weight=&#8221;bold&#8221;<\/li>\n<\/ul>\n<p>or a relative value:<\/p>\n<ul>\n<li>font-weight=&#8221;lighter&#8221;<\/li>\n<li>font-weight=&#8221;bolder&#8221;<\/li>\n<\/ul>\n<div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-blue-100 !sh-text-black \"><div><div class=\"\">\n<h4>Code<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\">[image-gallery font-weight=\"900\"]<\/div><\/div><\/div><\/p>\n<h4>Rendering<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><div id=\"image_gallery_container\" class=\"flex flex-row sh-gap-4\">\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: 900;\">\n            Title 1\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/ACES.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.library.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: 900;\">\n            Title 2\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/UI-08-210714-067-2.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/p>\n<h3>bgcolor<\/h3>\n<p>The <strong>bgcolor<\/strong> attribute defines the background color of the text overlay. The default value is black (#000000). Use the color&#8217;s hex value in the <strong>#xxxxxx<\/strong> format.<\/p>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-blue-100 !sh-text-black \"><div><div class=\"\"><div class=\"shortcode sh-grid sh-grid-cols-1 md:sh-grid-cols-12 sh-gap-3\"><div class=\"shortcode sh-col-span-4 sh-pb-3\"><\/p>\n<h4>Code<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\">[image-gallery bgcolor=\"#5f2107\"]<\/div><\/div><\/div><\/div><div class=\"shortcode sh-col-span-8 sh-pb-3\"><\/p>\n<h4>Rendering<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><div id=\"image_gallery_container\" class=\"flex flex-row sh-gap-4\">\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(95,33,7,0.75); font-size: 16px; font-weight: normal;\">\n            Title 1\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/ACES.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.library.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(95,33,7,0.75); font-size: 16px; font-weight: normal;\">\n            Title 2\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/UI-08-210714-067-2.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/p>\n<h3>bg-opacity<\/h3>\n<p>The <strong>bg-opacity<\/strong> attribute lets you set the opacity\/transparency of the background color of the text overlay. The default value is <strong>0.75<\/strong>. You can give a value <strong>between 0.0 and 1.0<\/strong>. The lower the value, the more transparent the background color is.<\/p>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-blue-100 !sh-text-black \"><div><div class=\"\"><div class=\"shortcode sh-grid sh-grid-cols-1 md:sh-grid-cols-12 sh-gap-3\"><div class=\"shortcode sh-col-span-4 sh-pb-3\"><\/p>\n<h4>Code<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\">[image-gallery bg-opacity=\"0.35\"]<\/div><\/div><\/div><\/div><div class=\"shortcode sh-col-span-8 sh-pb-3\"><\/p>\n<h4>Rendering<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><div id=\"image_gallery_container\" class=\"flex flex-row sh-gap-4\">\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.35); font-size: 16px; font-weight: normal;\">\n            Title 1\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/ACES.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/2\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/www.library.illinois.edu\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.35); font-size: 16px; font-weight: normal;\">\n            Title 2\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/wp-content\/uploads\/2022\/08\/UI-08-210714-067-2.jpg\" alt=\"img description\">\n        <\/a>\n        <\/div>\n      <\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/p>\n<h3>quantity<\/h3>\n<p>The <strong>quantity<\/strong> attribute specifies how many images in a row. The default value is <strong>2<\/strong>. You can set it to display <strong>3<\/strong>, <strong>4<\/strong>, or <strong>6<\/strong> images in a row.<\/p>\n<p><strong>Important!<\/strong> This attribute cannot be used alone, if you set it to 3, 4 or 6, you&#8217;ll need to update the <strong>image<\/strong>, <strong>link<\/strong>, and <strong>title<\/strong> attributes as well.<\/p>\n<div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-blue-100 !sh-text-black \"><div><div class=\"\">\n<h4>Code<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\">[image-gallery quantity=\"3\" title=\"About|Support|Showcase\" link=\"https:\/\/wordpress.library.illinois.edu\/scholarlycommons\/about\/,https:\/\/wordpress.library.illinois.edu\/scholarlycommons\/support\/,https:\/\/wordpress.library.illinois.edu\/scholarlycommons\/showcase\/\" image=\"https:\/\/www.library.illinois.edu\/mpal\/wp-content\/uploads\/sites\/17\/2019\/08\/Theatre-Resources.jpg,https:\/\/www.library.illinois.edu\/mpal\/wp-content\/uploads\/sites\/17\/2019\/08\/dance.jpg, https:\/\/www.library.illinois.edu\/mpal\/wp-content\/uploads\/sites\/17\/2019\/08\/music.jpg\" alt=\"Theatre Resources,dance,music \"]<\/div><\/div><\/div><\/p>\n<h4>Rendering<\/h4>\n<p><div class=\"shortcode sh-p-4 sh-rounded sh-drop-shadow-sm sh-bg-white !sh-text-black !sh-border  \"><div><div class=\"\"><div id=\"image_gallery_container\" class=\"flex flex-row sh-gap-4\">\n      <div class=\"shortcode sh-w-full md:sh-w-1\/3\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/wordpress.library.illinois.edu\/scholarlycommons\/about\/\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            About\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/mpal\/wp-content\/uploads\/sites\/17\/2019\/08\/Theatre-Resources.jpg\" alt=\"Theatre Resources\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/3\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/wordpress.library.illinois.edu\/scholarlycommons\/support\/\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Support\n          <\/div>\n          <img decoding=\"async\" src=\"https:\/\/www.library.illinois.edu\/mpal\/wp-content\/uploads\/sites\/17\/2019\/08\/dance.jpg\" alt=\"dance\">\n        <\/a>\n        <\/div>\n      <\/div>\n      <div class=\"shortcode sh-w-full md:sh-w-1\/3\">\n        <div class=\"sh-relative sh-mb-2 sh-text-center\">\n        <a class=\"focusable-link sh-block hover:sh-outline hover:sh-outline-offset-2 hover:sh-outline-2 hover:sh-outline-altgeld\"  href=\"https:\/\/wordpress.library.illinois.edu\/scholarlycommons\/showcase\/\">\n          <div class=\"sh-absolute sh-bottom-0 sh-p-2 sh-w-full sh-mb-0 sh-text-white\" style=\"background: rgba(0,0,0,0.75); font-size: 16px; font-weight: normal;\">\n            Showcase\n          <\/div>\n          <img decoding=\"async\" src=\" https:\/\/www.library.illinois.edu\/mpal\/wp-content\/uploads\/sites\/17\/2019\/08\/music.jpg\" alt=\"music \">\n        <\/a>\n        <\/div>\n      <\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/p>\n<p>&nbsp;<\/p>\n<p>You can use any combination of the above attributes. Please contact <a href=\"mailto:help@library.illinois.edu\">help@library.illinois.edu<\/a> for questions and comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When to use Use image gallery to display multiple images in a row. Each image has a text overlay that has a background color and is linked to a webpage. The font size and weight of the text overlay and the opacity of the background color can be customized. Basic usage Code Title 1 Title [&hellip;]<\/p>\n","protected":false},"author":25,"featured_media":0,"parent":24,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-3070","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/pages\/3070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/comments?post=3070"}],"version-history":[{"count":20,"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/pages\/3070\/revisions"}],"predecessor-version":[{"id":3225,"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/pages\/3070\/revisions\/3225"}],"up":[{"embeddable":true,"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/pages\/24"}],"wp:attachment":[{"href":"https:\/\/wordpress.library.illinois.edu\/wp-training\/wp-json\/wp\/v2\/media?parent=3070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}