{"id":22331,"date":"2016-07-31T22:27:00","date_gmt":"2016-07-31T21:27:00","guid":{"rendered":"https:\/\/www.megamenu.com\/documentation\/faqs\/theme-integration\/evolve-copy\/"},"modified":"2016-11-22T18:08:21","modified_gmt":"2016-11-22T18:08:21","slug":"x-theme","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/x-theme\/","title":{"rendered":"X Theme"},"content":{"rendered":"<p>You will see a duplicate Mobile Toggle button on smaller screens after enabling Max Mega Menu for the primary menu. To work around this issue, go to <em>Mega Menu &gt; Menu Themes<\/em> and enable the &#8216;Disable Mobile Toggle&#8217; option.<\/p>\n<p>Alternatively, if you would like to remove the theme mobile toggle button, and use the full Max Mega Menu mobile menu instead, you will need to edit the following file:<\/p>\n<p>\/wp-content\/themes\/x\/framework\/views\/global\/_nav-primary.php<\/p>\n<p>Find:<\/p>\n<pre class=\"lang:css decode:true\">if( function_exists( 'ubermenu' ) &amp;&amp; $config_id = ubermenu_get_menu_instance_by_theme_location( 'primary' ) ):\r\n<\/pre>\n<p>Replace with:<\/p>\n<pre class=\"lang:css decode:true\">if ( function_exists('max_mega_menu_is_enabled') &amp;&amp; max_mega_menu_is_enabled('primary') ) {\r\n    wp_nav_menu( array( 'theme_location' =&gt; 'primary' ) );\r\n}\r\nelse if( function_exists( 'ubermenu' ) &amp;&amp; $config_id = ubermenu_get_menu_instance_by_theme_location( 'primary' ) ):\r\n<\/pre>\n<p>The full contents of the file (as of X v4.6.4) should be:<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n\r\n\/\/ =============================================================================\r\n\/\/ VIEWS\/GLOBAL\/_NAV-PRIMARY.PHP\r\n\/\/ -----------------------------------------------------------------------------\r\n\/\/ Outputs the primary nav.\r\n\/\/ =============================================================================\r\n\r\nif ( function_exists('max_mega_menu_is_enabled') &amp;&amp; max_mega_menu_is_enabled('primary') ) {\r\n    wp_nav_menu( array( 'theme_location' =&gt; 'primary' ) );\r\n}\r\nelse if( function_exists( 'ubermenu' ) &amp;&amp; $config_id = ubermenu_get_menu_instance_by_theme_location( 'primary' ) ):\tubermenu( $config_id, array( 'theme_location' =&gt; 'primary') );\r\nelse: ?&gt;\r\n\r\n&lt;a href=\"#\" class=\"x-btn-navbar collapsed\" data-toggle=\"collapse\" data-target=\".x-nav-wrap.mobile\"&gt;\r\n  &lt;i class=\"x-icon-bars\" data-x-icon=\"&amp;#xf0c9;\"&gt;&lt;\/i&gt;\r\n  &lt;span class=\"visually-hidden\"&gt;&lt;?php _e( 'Navigation', '__x__' ); ?&gt;&lt;\/span&gt;\r\n&lt;\/a&gt;\r\n\r\n&lt;nav class=\"x-nav-wrap desktop\" role=\"navigation\"&gt;\r\n  &lt;?php x_output_primary_navigation(); ?&gt;\r\n&lt;\/nav&gt;\r\n\r\n&lt;div class=\"x-nav-wrap mobile collapse\"&gt;\r\n  &lt;?php x_output_primary_navigation(); ?&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;?php endif; ?&gt;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You will see a duplicate Mobile Toggle button on smaller screens after enabling Max Mega Menu for the primary menu. To work around this issue, go to Mega Menu &gt; Menu Themes and enable the &#8216;Disable Mobile Toggle&#8217; option. Alternatively, if you would like to remove the theme mobile toggle&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"open","template":"template-documentation.php","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"ht-kb-category":[15],"ht-kb-tag":[],"class_list":["post-22331","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":"You will see a duplicate Mobile Toggle button on smaller screens after enabling Max Mega Menu for the primary menu. To work around this issue, go to Mega Menu &gt; Menu Themes and enable the &#8216;Disable Mobile Toggle&#8217; option. Alternatively, if you would like to remove the theme mobile toggle...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/22331","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=22331"}],"version-history":[{"count":4,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/22331\/revisions"}],"predecessor-version":[{"id":96901,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/22331\/revisions\/96901"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=22331"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=22331"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=22331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}