{"id":1776,"date":"2010-11-15T10:24:58","date_gmt":"2010-11-15T10:24:58","guid":{"rendered":"http:\/\/mts-help.nick.php.dev\/after_sale_support\/jquery\/accordion\/article3.html"},"modified":"2020-02-03T05:14:25","modified_gmt":"2020-02-03T10:14:25","slug":"accordion-2","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/accordion-2.html","title":{"rendered":"&#8220;Accordion&#8221;-2"},"content":{"rendered":"This is an \u2018Accordion\u2019 Script. So-called &#8220;Accordion&#8221; is a drop-down panel that holds some additional content. <p> <strong>JavaScript<\/strong> <br \/>In order to make the script work, the <strong>index-#.html<\/strong> file with a gallery should contain these lines of HTML code:<\/p> <p>The <span style=\"font-weight: bold;\">&lt;head&gt;<\/span> section of the <strong>index-#.html<\/strong> file contains these lines of code that initialize the script functionality with basic values:<\/p> <p>The script initializes a list (<strong>&lt;dl&gt;<\/strong> tag) with <strong>.accordion<\/strong> class. Also we need to setup an element (<strong>&lt;dt&gt;<\/strong> tag) with an active class (<strong>.active<\/strong>). This element will toggle drop-down panel also it defines which tag will define \u2018accordion\u2019 header title.<\/p> <p> <strong>HTML<\/strong> <br \/>Below you can see general HTML script representation: <br \/><\/p> <p>It is possible to setup any panel active by default. You just need to set <strong>.active<\/strong> class for panel <strong>&lt;dt&gt;<\/strong> tag and set <strong>11<\/strong> style for correspondent <strong>&lt;dd&gt;<\/strong> tag. <br \/>In order to add another \u2018accordion\u2019 element you will just need to add the following HTML code construction:<\/p> <p> <strong>CSS<\/strong> <br \/>You can find script related stylesheet in the main <strong>style.css<\/strong> file.<\/p>","protected":false},"excerpt":{"rendered":"<p>This is an \u2018Accordion\u2019 Script. So-called &#8220;Accordion&#8221; is a drop-down panel that holds some additional content. JavaScript In order to make the script work, the index-#.html file with a gallery should contain these lines of HTML code: The &lt;head&gt; section of the index-#.html file contains these lines of code that initialize the script functionality with [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[271],"tags":[881,813],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1776"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=1776"}],"version-history":[{"count":5,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1776\/revisions"}],"predecessor-version":[{"id":86249,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1776\/revisions\/86249"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=1776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=1776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=1776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}