{"id":98862,"date":"2016-12-17T20:05:55","date_gmt":"2016-12-17T20:05:55","guid":{"rendered":"https:\/\/www.megamenu.com\/documentation\/majesty-copy\/"},"modified":"2018-03-12T17:15:48","modified_gmt":"2018-03-12T17:15:48","slug":"industrial","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/industrial\/","title":{"rendered":"Industrial (AnpsThemes)"},"content":{"rendered":"<p>The following instructions were written based on a clean installation of the Industrial theme and a clean installation of Max Mega Menu.<\/p>\n<h3>Step 1<\/h3>\n<p>When you enable Max Mega Menu for the Primary Menu, it will not work because the theme&#8217;s call to wp_nav_menu does not specify the &#8220;theme_location&#8221; parameter.<\/p>\n<p>To fix this problem, add the following code to your <a href=\"https:\/\/codex.wordpress.org\/Child_Themes\">child theme<\/a>&#8216;s functions.php file:<\/p>\n<pre class=\"lang:default decode:true \">function add_theme_location_to_nav_menu_args( $args ) {\r\n    if ($args['menu_class'] == 'main-menu') {\r\n        $args['theme_location'] = 'primary';\r\n    }\r\n\r\n    return $args;\r\n}\r\nadd_filter(\"wp_nav_menu_args\", \"add_theme_location_to_nav_menu_args\", 10, 2);<\/pre>\n<h3>Step 2<\/h3>\n<p>Go to <em>Mega Menu &gt; Menu Themes<\/em> and set the following values:<\/p>\n<ul>\n<li>Mobile Menu &gt; Responsive Breakpoint: <strong>1200px<\/strong> (this is the width at which the theme starts displaying a mobile toggle button)<\/li>\n<li>Mobile Menu &gt; Disable Mobile Toggle: <strong>Enabled<\/strong><\/li>\n<li>Mega Menus &gt; Panel Width (Outer): <strong>.header-wrap<\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The following instructions were written based on a clean installation of the Industrial theme and a clean installation of Max Mega Menu. Step 1 When you enable Max Mega Menu for the Primary Menu, it will not work because the theme&#8217;s call to wp_nav_menu does not specify the &#8220;theme_location&#8221; parameter&#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-98862","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":"The following instructions were written based on a clean installation of the Industrial theme and a clean installation of Max Mega Menu. Step 1 When you enable Max Mega Menu for the Primary Menu, it will not work because the theme&#8217;s call to wp_nav_menu does not specify the &#8220;theme_location&#8221; parameter....","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/98862","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=98862"}],"version-history":[{"count":6,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/98862\/revisions"}],"predecessor-version":[{"id":147039,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/98862\/revisions\/147039"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=98862"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=98862"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=98862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}