{"id":192973,"date":"2019-03-21T15:46:59","date_gmt":"2019-03-21T15:46:59","guid":{"rendered":"https:\/\/www.megamenu.com\/documentation\/twenty-nineteen-copy\/"},"modified":"2024-02-20T13:27:38","modified_gmt":"2024-02-20T13:27:38","slug":"ronneby","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/ronneby\/","title":{"rendered":"Ronneby"},"content":{"rendered":"<h3>Step 1<\/h3>\n<p>Install and activate the child theme (dfd-ronneby_child.zip) which was provided in your theme download.<\/p>\n<h3>Step 2<\/h3>\n<p>Within the child theme folder, create a new file named &#8216;functions.php&#8217; and paste in the following:<\/p>\n<pre class=\"lang:default decode:true\">&lt;?php\r\n\r\nif ( ! function_exists( 'mytheme_register_nav_menu' ) ) {\r\n\r\n\tfunction mytheme_register_nav_menu(){\r\n\t\t\tregister_nav_menus(array(\r\n\t\t\t\t'primary_navigation' =&gt; esc_html__('Primary Navigation', 'dfd'),\r\n\t\t\t\t'top_left_navigation' =&gt; esc_html__('Top Left Navigation for header style 3 and 4', 'dfd'),\r\n\t\t\t\t'top_right_navigation' =&gt; esc_html__('Top Right Navigation for header style 3 and 4', 'dfd'),\r\n\t\t\t\t'additional_header_menu' =&gt; esc_html__('Additional header navigation', 'dfd'),\r\n\t\t\t\t'side_header_menu' =&gt; esc_html__('Side header style 11 navigation', 'dfd'),\r\n\t\t\t\t'side_area_menu' =&gt; esc_html__('Side area navigation', 'dfd'),\r\n\t\t\t\t'footer_menu' =&gt; esc_html__('Footer navigation', 'dfd'),\r\n\t\t\t));\r\n\t}\r\n\tadd_action( 'after_setup_theme', 'mytheme_register_nav_menu', 0 );\r\n}\r\n\r\n?&gt;<\/pre>\n<h3>Step 3<\/h3>\n<p>Copy the <span class=\"lang:default decode:true crayon-inline \">templates\/header\/block-main_menu.php<\/span>\u00a0 file to your child theme. Make sure you keep the directory structure intact:<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/03\/ronneby-child.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-192975\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/03\/ronneby-child.png\" alt=\"\" width=\"248\" height=\"182\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/03\/ronneby-child.png 490w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/03\/ronneby-child-300x220.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2019\/03\/ronneby-child-50x37.png 50w\" sizes=\"auto, (max-width: 248px) 100vw, 248px\" \/><\/a><\/p>\n<p>Find:<\/p>\n<pre class=\"lang:default decode:true\">&lt;nav class=\"mega-menu clearfix &lt;?php echo esc_attr($menu_class); ?&gt;\" id=\"main_mega_menu\"&gt;\r\n\t&lt;?php\r\n\t\twp_nav_menu(array(\r\n\t\t\t'theme_location' =&gt; 'primary_navigation', \r\n\t\t\t'menu_class' =&gt; 'nav-menu menu-primary-navigation menu-clonable-for-mobiles', \r\n\t\t\t'fallback_cb' =&gt; 'top_menu_fallback'\r\n\t\t));\r\n\t?&gt;\r\n\t&lt;i class=\"carousel-nav prev dfd-icon-left_2\"&gt;&lt;\/i&gt;\r\n\t&lt;i class=\"carousel-nav next dfd-icon-right_2\"&gt;&lt;\/i&gt;\r\n&lt;\/nav&gt;<\/pre>\n<p>Replace with:<\/p>\n<pre class=\"lang:default decode:true\">&lt;nav class=\"clearfix &lt;?php echo esc_attr($menu_class); ?&gt;\"&gt;\r\n\t&lt;?php\r\n\t\twp_nav_menu(array('theme_location' =&gt; 'primary_navigation'));\r\n\t?&gt;\r\n&lt;\/nav&gt;<\/pre>\n<h3>Step 4<\/h3>\n<p>Go to <em>Mega Menu &gt; Menu Themes &gt; Custom Styling<\/em> and delete line 2:<\/p>\n<p>clear: both;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1 Install and activate the child theme (dfd-ronneby_child.zip) which was provided in your theme download. Step 2 Within the child theme folder, create a new file named &#8216;functions.php&#8217; and paste in the following: &lt;?php if ( ! function_exists( &#8216;mytheme_register_nav_menu&#8217; ) ) { function mytheme_register_nav_menu(){ register_nav_menus(array( &#8216;primary_navigation&#8217; =&gt; esc_html__(&#8216;Primary Navigation&#8217;,&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"ht-kb-category":[15],"ht-kb-tag":[],"class_list":["post-192973","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":"Step 1 Install and activate the child theme (dfd-ronneby_child.zip) which was provided in your theme download. Step 2 Within the child theme folder, create a new file named &#8216;functions.php&#8217; and paste in the following: &lt;?php if ( ! function_exists( 'mytheme_register_nav_menu' ) ) { function mytheme_register_nav_menu(){ register_nav_menus(array( 'primary_navigation' =&gt; esc_html__('Primary Navigation',...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/192973","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=192973"}],"version-history":[{"count":7,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/192973\/revisions"}],"predecessor-version":[{"id":404538,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/192973\/revisions\/404538"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=192973"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=192973"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=192973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}