{"id":24998,"date":"2016-09-06T22:59:45","date_gmt":"2016-09-06T21:59:45","guid":{"rendered":"https:\/\/www.megamenu.com\/documentation\/change-second-click-behaviour-for-single-location-copy\/"},"modified":"2016-09-06T23:09:31","modified_gmt":"2016-09-06T22:09:31","slug":"accordion-menu-making-parent-menu-item-clickable","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/accordion-menu-making-parent-menu-item-clickable\/","title":{"rendered":"Accordion Menu: Changing the click behaviour for parent items"},"content":{"rendered":"<h3>Parent Item Click Behaviour<\/h3>\n<p>Accordion Menus respect the &#8216;Second Click Behaviour&#8217; option set in the <em>Mega Menu &gt; General Settings <\/em>page. Therefore, when clicking a\u00a0parent\u00a0menu item you have two choices depending on the &#8216;Second Click Behaviour&#8217; setting:<\/p>\n<p>First click opens sub menu, second click follows link<br \/>\nFirst click opens sub menu, second click closes sub menu<\/p>\n<h3>Making Parent Menu Item Clickable<\/h3>\n<p>If you want to be able to click the parent item and go straight to that page (without first opening the sub menu):<\/p>\n<ol>\n<li>Install\u00a0the &#8220;TC Custom JavaScript&#8221; plugin.<\/li>\n<li>Go to <em>Appearance &gt; Custom JavaScript<\/em> and paste in the following:\n<pre class=\"lang:default decode:true\">jQuery( document ).ready(function($) {\r\n    $('.mega-menu-accordion a.mega-menu-link').unbind();\r\n});<\/pre>\n<\/li>\n<li>Go to\u00a0<em>Appearance &gt; Menus <\/em>and\u00a0ensure the &#8216;Accordion Behaviour&#8217; option is set to &#8216;Keep active submenus open&#8217;.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Parent Item Click Behaviour Accordion Menus respect the &#8216;Second Click Behaviour&#8217; option set in the Mega Menu &gt; General Settings page. Therefore, when clicking a\u00a0parent\u00a0menu item you have two choices depending on the &#8216;Second Click Behaviour&#8217; setting: First click opens sub menu, second click follows link First click opens sub&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"ht-kb-category":[14],"ht-kb-tag":[],"class_list":["post-24998","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-faqs"],"uagb_featured_image_src":[],"uagb_author_info":{"display_name":"Tom Hemsley","author_link":"https:\/\/www.megamenu.com\/author\/megamenu\/"},"uagb_comment_info":0,"uagb_excerpt":"Parent Item Click Behaviour Accordion Menus respect the &#8216;Second Click Behaviour&#8217; option set in the Mega Menu &gt; General Settings page. Therefore, when clicking a\u00a0parent\u00a0menu item you have two choices depending on the &#8216;Second Click Behaviour&#8217; setting: First click opens sub menu, second click follows link First click opens sub...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/24998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/comments?post=24998"}],"version-history":[{"count":5,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/24998\/revisions"}],"predecessor-version":[{"id":25004,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/24998\/revisions\/25004"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=24998"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=24998"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=24998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}