{"id":116946,"date":"2017-06-21T15:33:53","date_gmt":"2017-06-21T14:33:53","guid":{"rendered":"https:\/\/www.megamenu.com\/documentation\/twenty-eleven-copy\/"},"modified":"2017-11-16T16:25:01","modified_gmt":"2017-11-16T16:25:01","slug":"themetrust-create","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/themetrust-create\/","title":{"rendered":"Create (ThemeTrust)"},"content":{"rendered":"<p>The menu will pick up <a href=\"https:\/\/www.megamenu.com\/documentation\/removing-residual-styling\/\">residual theme styling<\/a> when Max Mega Menu is enabled.<\/p>\n<p>Copy the header.php file to your <a href=\"https:\/\/codex.wordpress.org\/Child_Themes\">Child Theme<\/a>.<\/p>\n<p>Find:<\/p>\n<pre class=\"lang:default decode:true\">&lt;div class=\"main-nav clearfix\"&gt;<\/pre>\n<p>Replace with:<\/p>\n<pre class=\"lang:default decode:true\">&lt;div class=\"main-nav-mmm clearfix\"&gt;<\/pre>\n<p>Go to <em>Appearance &gt; Customize &gt; Additional CSS<\/em> and enter the following:<\/p>\n<pre class=\"lang:css decode:true \">.main-nav-mmm {\r\n    display: inline-block;\r\n}\r\n\r\n@media only screen and (max-width: 768px){\r\n    .nav-holder {\r\n        float: none;\r\n        width: 100%;    \r\n    }\r\n    .main-nav-mmm {\r\n        display: block;   \r\n    }\r\n    \/* Optional: hide secondary nav on small screens *\/\r\n    .secondary-nav {\r\n        display: none;\r\n    }\r\n}<\/pre>\n<h3>Fix Sticky Header<\/h3>\n<p>If you are using the theme Sticky Header option, you will find that sub menus do not open properly when the header is stuck. To fix this, add the following to your child themes functions.php file:<\/p>\n<pre class=\"lang:default decode:true  \">remove_action( 'wp_enqueue_scripts', 'create_scripts_n_styles' );\r\nadd_action( 'wp_enqueue_scripts', 'create_scripts_n_styles', 99 ); \/\/ ensure theme scripts are loaded before Max Mega Menu scripts<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The menu will pick up residual theme styling when Max Mega Menu is enabled. Copy the header.php file to your Child Theme. Find: &lt;div class=&#8221;main-nav clearfix&#8221;&gt; Replace with: &lt;div class=&#8221;main-nav-mmm clearfix&#8221;&gt; Go to Appearance &gt; Customize &gt; Additional CSS and enter the following: .main-nav-mmm { display: inline-block; } @media only&#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-116946","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 menu will pick up residual theme styling when Max Mega Menu is enabled. Copy the header.php file to your Child Theme. Find: &lt;div class=\"main-nav clearfix\"&gt; Replace with: &lt;div class=\"main-nav-mmm clearfix\"&gt; Go to Appearance &gt; Customize &gt; Additional CSS and enter the following: .main-nav-mmm { display: inline-block; } @media only...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/116946","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=116946"}],"version-history":[{"count":8,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/116946\/revisions"}],"predecessor-version":[{"id":132342,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/116946\/revisions\/132342"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=116946"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=116946"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=116946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}