{"id":908,"date":"2017-09-05T20:51:43","date_gmt":"2017-09-05T20:51:43","guid":{"rendered":"https:\/\/in.nau.edu\/web\/?page_id=908"},"modified":"2020-05-04T15:12:49","modified_gmt":"2020-05-04T22:12:49","slug":"accordions","status":"publish","type":"page","link":"https:\/\/in.nau.edu\/web\/accordions\/","title":{"rendered":"Accordions"},"content":{"rendered":"<h1>Accordions<\/h1>\n<p>Accordions are web design components that let you show headings while hiding blocks of related content. They are popular but often misused.<\/p>\n<p style=\"text-align: center;\"><a class=\"shortcode-button\" href=\"https:\/\/in.nau.edu\/web\/video-accordions\/\" target=\"_blank\" rel=\"noopener noreferrer\"><u>Watch the Accordions shortcode video<\/u><\/a><\/p>\n<!-- shortcode-tab -->\n<div class='shortcode-tab-container tab-count-3'>\n    <ul class='tabs'>\n                <li class=\"tab\">\n            <a class=\"shortcode-tab__trigger\" href=\"#\" data-header=\"Overview_1\">\n                <div class=\"shortcode-tab-header selected\">\n                    <h4>\n                        Overview <span class=\"screen-reader-text\">Tab Open<\/span>\n                    <\/h4>\n                <\/div>\n            <\/a>\n        <\/li>\n                <li class=\"tab\">\n            <a class=\"shortcode-tab__trigger\" href=\"#\" data-header=\"How-To_2\">\n                <div class=\"shortcode-tab-header \">\n                    <h4>\n                        How-To <span class=\"screen-reader-text\">Tab Closed<\/span>\n                    <\/h4>\n                <\/div>\n            <\/a>\n        <\/li>\n                <li class=\"tab\">\n            <a class=\"shortcode-tab__trigger\" href=\"#\" data-header=\"Troubleshooting_3\">\n                <div class=\"shortcode-tab-header \">\n                    <h4>\n                        Troubleshooting <span class=\"screen-reader-text\">Tab Closed<\/span>\n                    <\/h4>\n                <\/div>\n            <\/a>\n        <\/li>\n            <\/ul>\n        <!-- shortcode-accordion -->\n<div class=\"shortcode-accordion \" style=\"position: relative;\" >\n        <a class=\"shortcode-accordion__trigger\" data-header=\"Overview_1\" href=\"#\">\n      <div class=\"shortcode-accordion__header\">\n          <h4>Overview <span class=\"screen-reader-text\">Accordion Open<\/span><\/h4>\n          <span class=\"shortcode-accordion__header__arrow\"><\/span>\n      <\/div>\n    <\/a>\n    <div class=\"shortcode-accordion__body\">\n        <!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body>\n\n<h3>Consider using accordions when<\/h3>\n<ul>\n<li>You have <strong>two or more<\/strong> <em>closely related<\/em> topics accompanied by a medium amount of detailed content.<\/li>\n<li>The content hidden in the accordion isn&rsquo;t very short or very long.<\/li>\n<\/ul>\n<h3>Don&rsquo;t use accordions when<\/h3>\n<ul>\n<li>You only have a <strong>single topic<\/strong> and its related content to put into an accordion.<\/li>\n<li>The content you want to hide in an accordion is very short.<\/li>\n<li>The content you want to hide in an accordion is very long.<\/li>\n<\/ul>\n<h3>Alternatives to accordions<\/h3>\n<ul>\n<li>The simplest option is to display all of your text and images on the web page.<\/li>\n<li>Another alternative is to use <a href=\"https:\/\/www.nngroup.com\/articles\/in-page-links\/\">anchor links<\/a> as a miniature table of contents on your page.<\/li>\n<li>Tabs suffer from many of the same problems as accordions, and they present even more accessibility challenges.<\/li>\n<\/ul>\n<h3>Example<\/h3>\n<p>Accordions don&rsquo;t belong inside of tabs! Please see the example below (on the mobile view, you&rsquo;ll need to scroll to the bottom of the content to see the examples).<br>\n<\/p>\n\n    <\/body><\/html>\n\n    <\/div>\n<\/div>\n\n        <!-- shortcode-accordion -->\n<div class=\"shortcode-accordion shortcode-accordion--closed\" style=\"position: relative;\" >\n        <a class=\"shortcode-accordion__trigger\" data-header=\"How-To_2\" href=\"#\">\n      <div class=\"shortcode-accordion__header\">\n          <h4>How-To <span class=\"screen-reader-text\">Accordion Closed<\/span><\/h4>\n          <span class=\"shortcode-accordion__header__arrow\"><\/span>\n      <\/div>\n    <\/a>\n    <div class=\"shortcode-accordion__body\">\n        <!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body>\n\n<h3>How to add accordions<\/h3>\n<p>Accordions can be attached to your page as a shortcode. The shortcode buttons appear at the top of the content editor window.<\/p>\n<ol>\n<li>Select accordions shortcode.<b> <\/b>The shortcode appears in the text editor.<\/li>\n<li>Insert your cursor between the shortcode bookends.<\/li>\n<li>Enter Heading 4 (H4) text for the accordion label or title.<\/li>\n<li>Insert text and or other elements for accordion content.<\/li>\n<\/ol>\n\n\n    <\/body><\/html>\n\n    <\/div>\n<\/div>\n\n        <!-- shortcode-accordion -->\n<div class=\"shortcode-accordion shortcode-accordion--closed\" style=\"position: relative;\" >\n        <a class=\"shortcode-accordion__trigger\" data-header=\"Troubleshooting_3\" href=\"#\">\n      <div class=\"shortcode-accordion__header\">\n          <h4>Troubleshooting <span class=\"screen-reader-text\">Accordion Closed<\/span><\/h4>\n          <span class=\"shortcode-accordion__header__arrow\"><\/span>\n      <\/div>\n    <\/a>\n    <div class=\"shortcode-accordion__body\">\n        <!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body>\n\n<p>Check the following list if your accordions are not appearing as intended:<\/p>\n<ul>\n<li>Ensure you created a new accordion for each one that you&rsquo;d like to display<\/li>\n<li>Check that the accordion shortcodes aren&rsquo;t nested &ndash; each must be discreet<\/li>\n<li>Ensure that the text for your shortcode is complete, all bookends are present, and each closing bookend contains a forward slash &ldquo;\/&rdquo;<\/li>\n<\/ul>\n\n\n    <\/body><\/html>\n\n    <\/div>\n<\/div>\n\n    <\/div>\n\n<h2>Example Kaltura shortcode embed<\/h2>\n<!-- shortcode-kaltura -->\n<script src=\"https:\/\/cdnapisec.kaltura.com\/p\/1969491\/sp\/196949100\/embedIframeJs\/uiconf_id\/30348791\/partner_id\/1969491?autoembed=true&amp;entry_id=0_1y3g06au&amp;playerId=kaltura_player_1579637787&amp;cache_st=1579637787&amp;width=400&amp;height=300\"><\/script>\n<h2>Example<\/h2>\n<!-- shortcode-accordion -->\n<div class=\"shortcode-accordion shortcode-accordion--closed\" style=\"position: relative;\" >\n        <a class=\"shortcode-accordion__trigger\" data-header=\"Accordion 1_0\" href=\"#\">\n      <div class=\"shortcode-accordion__header\">\n          <h4>Accordion 1 <span class=\"screen-reader-text\">Accordion Closed<\/span><\/h4>\n          <span class=\"shortcode-accordion__header__arrow\"><\/span>\n      <\/div>\n    <\/a>\n    <div class=\"shortcode-accordion__body\">\n        <!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body>\n<p>Here&rsquo;s some information related to the heading used for Accordion 1.<br>\n<\/p><\/body><\/html>\n\n    <\/div>\n<\/div>\n<!-- shortcode-accordion -->\n<div class=\"shortcode-accordion shortcode-accordion--closed\" style=\"position: relative;\" >\n        <a class=\"shortcode-accordion__trigger\" data-header=\"Accordion 2_0\" href=\"#\">\n      <div class=\"shortcode-accordion__header\">\n          <h4>Accordion 2 <span class=\"screen-reader-text\">Accordion Closed<\/span><\/h4>\n          <span class=\"shortcode-accordion__header__arrow\"><\/span>\n      <\/div>\n    <\/a>\n    <div class=\"shortcode-accordion__body\">\n        <!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body>\n<p>Here&rsquo;s a topic that&rsquo;s <i>very closely related <\/i>to Accordion 1, yet different enough to display as a strategic piece of information in its accordion.<br>\n<\/p><\/body><\/html>\n\n    <\/div>\n<\/div>\n<!-- shortcode-right-column -->\n<div class=\"shortcode-right-column\" >\n    <div class=\"shortcode-right-column__container\">\n<!-- shortcode-block -->\n<div class=\"shortcode-block\">\n      <div class=\"block-header\">\n        <h3>Academic unit site support<\/h3>\n    <\/div>\n          <div class=\"block-body\">\n      <div>\n<i class=\"fas fa-pen\"><\/i> <a href=\"https:\/\/nau.edu\/marketing\/resources\/request-support\/?landing=Digital%20support%20request%20%E2%80%93%20website%20edits%20and%20reporting\">Digital Marketing Support<\/a><\/p>\n<p><i class=\"fas fa-phone\"><\/i> <a href=\"tel:9285231741\">928-523-1741<\/a><\/p>\n<\/div>\n          <\/div>\n  <\/div>\n\n<!-- shortcode-block -->\n<div class=\"shortcode-block\">\n      <div class=\"block-header\">\n        <h3>Business unit site support<\/h3>\n    <\/div>\n          <div class=\"block-body\">\n      <div>\n<i class=\"fas fa-envelope\"><\/i> <a href=\"https:\/\/nau.edu\/servicenow\">ServiceNow<\/a><\/p>\n<p><i class=\"fas fa-phone\"><\/i> <a href=\"tel:9285231511\">928-523-1511<\/a><\/p>\n<\/div>\n          <\/div>\n  <\/div>\n\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Accordions Accordions are web design components that let you show headings while hiding blocks of related content. They are popular but often misused. Watch the Accordions shortcode video Example Kaltura shortcode embed Example<\/p>\n","protected":false},"author":349,"featured_media":2240,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","ring_central_script_selection":"","footnotes":""},"class_list":["post-908","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/pages\/908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/users\/349"}],"replies":[{"embeddable":true,"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/comments?post=908"}],"version-history":[{"count":10,"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/pages\/908\/revisions"}],"predecessor-version":[{"id":7633,"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/pages\/908\/revisions\/7633"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/media\/2240"}],"wp:attachment":[{"href":"https:\/\/in.nau.edu\/web\/wp-json\/wp\/v2\/media?parent=908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}