{"id":103720,"date":"2017-02-01T16:29:49","date_gmt":"2017-02-01T16:29:49","guid":{"rendered":"https:\/\/www.megamenu.com\/documentation\/ecommerce-mythemeshop-copy\/"},"modified":"2017-05-12T13:13:40","modified_gmt":"2017-05-12T12:13:40","slug":"lambda","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/lambda\/","title":{"rendered":"Lambda"},"content":{"rendered":"<h3>Mega Menu settings inaccessible for newly added items<\/h3>\n<p>By default, Lambda saves the menu structure using AJAX. This will stop the menu page from refreshing during the menu save process, and in turn stop Max Mega Menu from being able to detect that the menu structure has been updated.<\/p>\n<p>To fix this, set &#8220;<a href=\"http:\/\/help.oxygenna.com\/wordpress\/lambda\/theme-options.html#menus\">Save Menus Using Ajax<\/a>&#8221; to &#8220;Off&#8221; in the theme settings.<\/p>\n<h3>Primary Menu<\/h3>\n<p>Lambda does not include the &#8216;theme_location&#8217; parameter when outputting a menu using the wp_nav_menu() function (a requirement for Max Mega Menu to work).<\/p>\n<p>To restore the theme_location parameter, please add the following to your themes functions.php file.<\/p>\n<pre class=\"lang:default decode:true \">function megamenu_add_theme_location($args) {\r\n    if (!isset($args['theme_location']) || $args['theme_location'] == \"\") {\r\n        $args['theme_location'] = 'primary';\r\n    }\r\n\r\n    return $args;\r\n}\r\nadd_filter('wp_nav_menu_args', 'megamenu_add_theme_location');<\/pre>\n<h3>Mobile Menu Setup<\/h3>\n<p>Go to <em>Mega Menu &gt; Menu Themes<\/em>. In the Mobile section, set the following:<\/p>\n<p>Responsive Breakpoint: 991px<\/p>\n<p>Disable Mobile Toggle: checked<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mega Menu settings inaccessible for newly added items By default, Lambda saves the menu structure using AJAX. This will stop the menu page from refreshing during the menu save process, and in turn stop Max Mega Menu from being able to detect that the menu structure has been updated. To&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"open","template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"ht-kb-category":[15],"ht-kb-tag":[],"class_list":["post-103720","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-theme-integration"],"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":"Mega Menu settings inaccessible for newly added items By default, Lambda saves the menu structure using AJAX. This will stop the menu page from refreshing during the menu save process, and in turn stop Max Mega Menu from being able to detect that the menu structure has been updated. To...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/103720","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=103720"}],"version-history":[{"count":6,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/103720\/revisions"}],"predecessor-version":[{"id":113339,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/103720\/revisions\/113339"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=103720"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=103720"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=103720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}