{"id":404523,"date":"2024-02-20T10:10:53","date_gmt":"2024-02-20T10:10:53","guid":{"rendered":"https:\/\/www.megamenu.com\/?post_type=ht_kb&#038;p=404523"},"modified":"2024-02-20T10:16:59","modified_gmt":"2024-02-20T10:16:59","slug":"zakra-free","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/zakra-free\/","title":{"rendered":"Zakra (Free)"},"content":{"rendered":"\r\n<p>This guide is for the Zakra theme hosted on wordpress.org.<\/p>\r\n<h3 class=\"wp-block-heading\">Fix Mobile Menu<\/h3>\r\n<h4>Step 1<\/h4>\r\n\r\n\r\n\r\n<p>Copy the template-parts\/header\/primary-menu\/mobile-toggle.php file to your <a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\">child theme<\/a>.<\/p>\r\n\r\n\r\n\r\n<p>Find (line 47):<\/p>\r\n<pre class=\"lang:default decode:true \">\t&lt;nav id=\"zak-mobile-nav\" class=\"&lt;?php zakra_css_class( 'zakra_mobile_nav_class' ); ?&gt;\"\r\n\r\n\t\t&lt;?php echo wp_kses_post( apply_filters( 'zakra_nav_data_attrs', '' ) ); ?&gt;&gt;\r\n\r\n\t\t&lt;div class=\"zak-mobile-nav__header\"&gt;\r\n\t\t\t&lt;?php if ( get_theme_mod( 'zakra_enable_header_search', true ) ) : ?&gt;\r\n\t\t\t\t&lt;?php get_search_form(); \/\/ Header search. ?&gt;\r\n\t\t\t&lt;?php endif; ?&gt;\r\n\r\n\t\t\t&lt;!-- Mobile nav close icon. --&gt;\r\n\t\t\t&lt;button id=\"zak-mobile-nav-close\" class=\"zak-mobile-nav-close\" aria-label=\"&lt;?php esc_attr_e( 'Close Button', 'zakra' ); ?&gt;\"&gt;\r\n\t\t\t\t&lt;?php zakra_get_icon( 'x-mark' ); ?&gt;\r\n\t\t\t&lt;\/button&gt;\r\n\t\t&lt;\/div&gt; &lt;!-- \/.zak-mobile-nav__header --&gt;\r\n\r\n\t\t&lt;?php\r\n\t\twp_nav_menu(\r\n\t\t\tarray(\r\n\t\t\t\t'theme_location' =&gt; apply_filters( 'zakra_mobile_menu_location', 'menu-primary' ),\r\n\t\t\t\t'menu_id'        =&gt; 'zak-mobile-menu',\r\n\t\t\t\t'menu_class'     =&gt; 'zak-mobile-menu',\r\n\t\t\t\t'container'      =&gt; '',\r\n\r\n\t\t\t\t'fallback_cb'    =&gt; function() {\r\n\t\t\t\t\trequire get_template_directory() . '\/inc\/class-zakra-walker-page.php';\r\n\t\t\t\t\t$output = '&lt;ul id=\"zak-mobile-menu\" class=\"zak-mobile-menu\"&gt;';\r\n\r\n\t\t\t\t\t$output .= wp_list_pages(\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t'echo'               =&gt; false,\r\n\t\t\t\t\t\t\t'title_li'           =&gt; false,\r\n\t\t\t\t\t\t\t'walker'             =&gt; new Zakra_Walker_Page(),\r\n\t\t\t\t\t\t\t'has_children_class' =&gt; 'menu-item-has-children',\r\n\t\t\t\t\t\t\t'current_class'      =&gt; 'current-menu-item',\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\t$output .= '&lt;\/ul&gt;';\r\n\r\n\t\t\t\t\t\/\/ @codingStandardsIgnoreStart\r\n\t\t\t\t\techo $output;\r\n\t\t\t\t},\r\n\r\n\t\t\t)\r\n\t\t);\r\n\t\t?&gt;<\/pre>\r\n\r\n\r\n\r\n\r\n\r\n<p>Replace with:<\/p>\r\n<pre class=\"lang:default decode:true \">\t&lt;nav&gt;\r\n\r\n\t\t&lt;?php wp_nav_menu( array( 'theme_location' =&gt; 'menu-primary' ) ); ?&gt;<\/pre>\r\n<h4>Step 2<\/h4>\r\n<p>Under <em>Appearance &gt; Menus &gt; Max Mega Menu Settings<\/em>, set the Effect (Mobile) to &#8220;Off Canvas &#8211; Slide from right&#8221;.<\/p>\r\n\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>This guide is for the Zakra theme hosted on wordpress.org. Fix Mobile Menu Step 1 Copy the template-parts\/header\/primary-menu\/mobile-toggle.php file to your child theme. Find (line 47): &lt;nav id=&#8221;zak-mobile-nav&#8221; class=&#8221;&lt;?php zakra_css_class( &#8216;zakra_mobile_nav_class&#8217; ); ?&gt;&#8221; &lt;?php echo wp_kses_post( apply_filters( &#8216;zakra_nav_data_attrs&#8217;, &#8221; ) ); ?&gt;&gt; &lt;div class=&#8221;zak-mobile-nav__header&#8221;&gt; &lt;?php if ( get_theme_mod( &#8216;zakra_enable_header_search&#8217;, true&#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-404523","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":"This guide is for the Zakra theme hosted on wordpress.org. Fix Mobile Menu Step 1 Copy the template-parts\/header\/primary-menu\/mobile-toggle.php file to your child theme. Find (line 47): &lt;nav id=\"zak-mobile-nav\" class=\"&lt;?php zakra_css_class( 'zakra_mobile_nav_class' ); ?&gt;\" &lt;?php echo wp_kses_post( apply_filters( 'zakra_nav_data_attrs', '' ) ); ?&gt;&gt; &lt;div class=\"zak-mobile-nav__header\"&gt; &lt;?php if ( get_theme_mod( 'zakra_enable_header_search', true...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/404523","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=404523"}],"version-history":[{"count":6,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/404523\/revisions"}],"predecessor-version":[{"id":404530,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/404523\/revisions\/404530"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=404523"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=404523"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=404523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}