{"id":22145,"date":"2016-07-28T11:32:56","date_gmt":"2016-07-28T10:32:56","guid":{"rendered":"https:\/\/www.megamenu.com\/documentation\/faqs\/theme-integration\/avada-copy\/"},"modified":"2016-07-28T11:41:46","modified_gmt":"2016-07-28T10:41:46","slug":"top-shop","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/top-shop\/","title":{"rendered":"Top Shop"},"content":{"rendered":"<p>Sub menus within the Top Shop mobile menu will not work correctly when Max Mega Menu is enabled for the primary menu. The following change will disable the built in Top Shop mobile menu and display the standard Max Mega Menu instead. <em>To avoid losing changes when the theme is updated, all edits should be made inside a child theme.<\/em><\/p>\n<p>Edit:\u00a0wp-content\/themes\/topshop\/templates\/header\/header-layout-standard.php<\/p>\n<p>Find (line ~92):<\/p>\n<pre class=\"lang:default decode:true \">    &lt;nav id=\"site-navigation\" class=\"main-navigation &lt;?php echo ( get_theme_mod( 'topshop-sticky-header', false ) ) ? ' header-stick' : ''; ?&gt;\" role=\"navigation\"&gt;\r\n        &lt;span class=\"header-menu-button\"&gt;&lt;i class=\"fa fa-bars\"&gt;&lt;\/i&gt;&lt;span&gt;&lt;?php _e( 'Menu', 'topshop' ); ?&gt;&lt;\/span&gt;&lt;\/span&gt;\r\n        &lt;div id=\"main-menu\" class=\"main-menu-container\"&gt;\r\n            &lt;span class=\"main-menu-close\"&gt;&lt;i class=\"fa fa-angle-right\"&gt;&lt;\/i&gt;&lt;i class=\"fa fa-angle-left\"&gt;&lt;\/i&gt;&lt;\/span&gt;\r\n            &lt;div class=\"site-container\"&gt;\r\n                &lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'primary' ) ); ?&gt;\r\n                &lt;div class=\"clearboth\"&gt;&lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/nav&gt;&lt;!-- #site-navigation --&gt;<\/pre>\n<p>Replace with:<\/p>\n<pre class=\"lang:default decode:true\">&lt;?php if (function_exists('max_mega_menu_is_enabled') &amp;&amp; max_mega_menu_is_enabled('primary') ): ?&gt;\r\n    &lt;nav id=\"site-navigation\" class=\"&lt;?php echo ( get_theme_mod( 'topshop-sticky-header', false ) ) ? ' header-stick' : ''; ?&gt;\" role=\"navigation\"&gt;\r\n        &lt;div id=\"main-menu\" class=\"main-menu-container\"&gt;\r\n            &lt;div class=\"site-container\"&gt;\r\n                &lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'primary' ) ); ?&gt;\r\n                &lt;div class=\"clearboth\"&gt;&lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/nav&gt;&lt;!-- #site-navigation --&gt;\r\n&lt;?php else: ?&gt;\r\n    &lt;nav id=\"site-navigation\" class=\"main-navigation &lt;?php echo ( get_theme_mod( 'topshop-sticky-header', false ) ) ? ' header-stick' : ''; ?&gt;\" role=\"navigation\"&gt;\r\n        &lt;span class=\"header-menu-button\"&gt;&lt;i class=\"fa fa-bars\"&gt;&lt;\/i&gt;&lt;span&gt;&lt;?php _e( 'Menu', 'topshop' ); ?&gt;&lt;\/span&gt;&lt;\/span&gt;\r\n        &lt;div id=\"main-menu\" class=\"main-menu-container\"&gt;\r\n            &lt;span class=\"main-menu-close\"&gt;&lt;i class=\"fa fa-angle-right\"&gt;&lt;\/i&gt;&lt;i class=\"fa fa-angle-left\"&gt;&lt;\/i&gt;&lt;\/span&gt;\r\n            &lt;div class=\"site-container\"&gt;\r\n                &lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'primary' ) ); ?&gt;\r\n                &lt;div class=\"clearboth\"&gt;&lt;\/div&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/nav&gt;&lt;!-- #site-navigation --&gt;\r\n&lt;?php endif; ?&gt;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sub menus within the Top Shop mobile menu will not work correctly when Max Mega Menu is enabled for the primary menu. The following change will disable the built in Top Shop mobile menu and display the standard Max Mega Menu instead. To avoid losing changes when the theme is&#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-22145","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":"Sub menus within the Top Shop mobile menu will not work correctly when Max Mega Menu is enabled for the primary menu. The following change will disable the built in Top Shop mobile menu and display the standard Max Mega Menu instead. To avoid losing changes when the theme is...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/22145","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=22145"}],"version-history":[{"count":0,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/22145\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=22145"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=22145"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=22145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}