{"id":24300,"date":"2016-08-31T13:13:56","date_gmt":"2016-08-31T12:13:56","guid":{"rendered":"https:\/\/www.megamenu.com\/documentation\/faqs\/theme-integration\/spacious-copy\/"},"modified":"2016-09-02T17:26:20","modified_gmt":"2016-09-02T16:26:20","slug":"envince","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/envince\/","title":{"rendered":"Envince"},"content":{"rendered":"<p>When Max Mega Menu is enabled in Envince, you will see a duplicate menu output above the main menu.<\/p>\n<p>From your WordPress Dashboard, go to <i>Appearance &gt; Editor<\/i>, select\u00a0primary.php (menu\/primary.php) on the right hand side.<\/p>\n<p>Replace the contents of the file with the following:<\/p>\n<pre class=\"lang:default decode:true  \">&lt;nav class=\"navbar navbar-default\" &lt;?php hybrid_attr( 'menu', 'primary' ); ?&gt;&gt;\r\n\t&lt;div class=\"container\"&gt;\r\n\t\t&lt;?php if (function_exists('max_mega_menu_is_enabled') &amp;&amp; max_mega_menu_is_enabled('primary') ): ?&gt;\r\n\t\t\t&lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'primary' ) ); ?&gt;\r\n\t\t&lt;?php else: ?&gt;\r\n\t\t\t&lt;div class=\"navbar-header\"&gt;\r\n\t\t\t\t&lt;?php envince_select_mobile_nav_menu(); ?&gt;\r\n\t\t\t&lt;\/div&gt;\r\n\t\t\t&lt;?php\r\n\t\t\t\twp_nav_menu(array(\r\n\t\t\t\t\t'menu'              =&gt; 'primary',\r\n\t\t\t\t\t'theme_location'    =&gt; 'primary',\r\n\t\t\t\t\t'depth'             =&gt; 4,\r\n\t\t\t\t\t'container'         =&gt; 'div',\r\n\t\t\t\t\t'container_class'   =&gt; 'collapse navbar-collapse navbar-ex1-collapse',\r\n\t\t\t\t\t'menu_class'        =&gt; 'nav navbar-nav main-nav',\r\n\t\t\t\t\t'fallback_cb'       =&gt; 'wp_bootstrap_navwalker::fallback',\r\n\t\t\t\t\t'walker'            =&gt; new wp_bootstrap_navwalker()\r\n\t\t\t\t));\r\n\t\t\t?&gt;\r\n\t\t&lt;?php endif;?&gt;\r\n\t&lt;\/div&gt;\r\n&lt;\/nav&gt;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When Max Mega Menu is enabled in Envince, you will see a duplicate menu output above the main menu. From your WordPress Dashboard, go to Appearance &gt; Editor, select\u00a0primary.php (menu\/primary.php) on the right hand side. Replace the contents of the file with the following: &lt;nav class=&#8221;navbar navbar-default&#8221; &lt;?php hybrid_attr( &#8216;menu&#8217;,&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"template-documentation.php","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"ht-kb-category":[15],"ht-kb-tag":[],"class_list":["post-24300","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":"When Max Mega Menu is enabled in Envince, you will see a duplicate menu output above the main menu. From your WordPress Dashboard, go to Appearance &gt; Editor, select\u00a0primary.php (menu\/primary.php) on the right hand side. Replace the contents of the file with the following: &lt;nav class=\"navbar navbar-default\" &lt;?php hybrid_attr( 'menu',...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/24300","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=24300"}],"version-history":[{"count":3,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/24300\/revisions"}],"predecessor-version":[{"id":24649,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/24300\/revisions\/24649"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=24300"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=24300"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=24300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}