{"id":2552,"date":"2015-08-14T13:10:39","date_gmt":"2015-08-14T12:10:39","guid":{"rendered":"https:\/\/www.megamenu.com\/?page_id=2552"},"modified":"2017-01-17T17:21:42","modified_gmt":"2017-01-17T17:21:42","slug":"constructo","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/constructo\/","title":{"rendered":"Constructo"},"content":{"rendered":"<p>Constructo is a particularly difficult theme to integrate Max Mega Menu with. It requires editing theme PHP files which cannot be placed within a child theme, therefore, these changes will need to be reapplied if the theme gets updated.<\/p>\n<h3>Step 1<\/h3>\n<p>This step requires editing a PHP file. It&#8217;s important to\u00a0be <strong>extra careful<\/strong> and take a backup of the file before editing it. It would be wise to make these changes on a local test site\u00a0before uploading the changes to your live site.<\/p>\n<p>Go to <em>Appearance &gt; Editor<\/em>. Select &#8220;helpers.php&#8221; on the right.<\/p>\n<p>Find (line 639):<\/p>\n<pre class=\"lang:default decode:true\">&lt;nav class=\"site-navigation&lt;?php echo esc_attr($menu_description); ?&gt; site-navigation-&lt;?php echo $location; ?&gt;\"&gt;<\/pre>\n<p>Replace with:<\/p>\n<pre class=\"lang:default decode:true\">&lt;nav class=\"&lt;?php echo esc_attr($menu_description); ?&gt; site-navigation-&lt;?php echo $location; ?&gt;\"&gt;<\/pre>\n<p><em>Note: The &#8216;site-navigation&#8217; class is removed<\/em><\/p>\n<p>Find (line 676):<\/p>\n<pre class=\"lang:default decode:true\">wp_nav_menu( array(\r\n    'container' =&gt; false,\r\n    'menu_class' =&gt; '',\r\n    'echo' =&gt; true,\r\n    'before' =&gt; '',\r\n    'after' =&gt; '',\r\n    'link_before' =&gt; '',\r\n    'link_after' =&gt; '',\r\n    'depth' =&gt; 0,\r\n    'walker' =&gt; $walker,\r\n    'menu'=&gt;$menu\r\n));<\/pre>\n<p>Replace with:<\/p>\n<pre class=\"lang:default decode:true\">wp_nav_menu( array(\r\n    'container' =&gt; false,\r\n    'menu_class' =&gt; '',\r\n    'echo' =&gt; true,\r\n    'before' =&gt; '',\r\n    'after' =&gt; '',\r\n    'link_before' =&gt; '',\r\n    'link_after' =&gt; '',\r\n    'depth' =&gt; 0,\r\n    'walker' =&gt; $walker,\r\n    'menu'=&gt;$menu,\r\n    'theme_location' =&gt; 'primary'\r\n));<\/pre>\n<p><em>Note: The new &#8216;theme_location&#8217; line and <strong>the comma<\/strong> after $menu.<\/em><\/p>\n<h3>Step 2<\/h3>\n<p>Go to <em>Mega Menu &gt; Menu Themes<\/em>. In the Custom Styling area, paste in the following:<\/p>\n<pre class=\"lang:default decode:true \">@include desktop {\r\n    .site-navigation-primary {\r\n        display: block;\r\n        float: right;\r\n    }\r\n    .site-navigation-primary #{$wrap} {\r\n        float: left;\r\n    }\r\n}\r\n@include mobile {\r\n    .site-navigation-primary {\r\n        clear: both;\r\n        float: left;\r\n        width: 100%;\r\n    }\r\n}\r\n.navbar-toggle {\r\n    display: none !important;\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Constructo is a particularly difficult theme to integrate Max Mega Menu with. It requires editing theme PHP files which cannot be placed within a child theme, therefore, these changes will need to be reapplied if the theme gets updated. Step 1 This step requires editing a PHP file. It&#8217;s important&#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-2552","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":"Constructo is a particularly difficult theme to integrate Max Mega Menu with. It requires editing theme PHP files which cannot be placed within a child theme, therefore, these changes will need to be reapplied if the theme gets updated. Step 1 This step requires editing a PHP file. It&#8217;s important...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/2552","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=2552"}],"version-history":[{"count":10,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/2552\/revisions"}],"predecessor-version":[{"id":101784,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/2552\/revisions\/101784"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=2552"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=2552"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=2552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}