{"id":2110,"date":"2021-01-15T13:36:25","date_gmt":"2021-01-15T13:36:25","guid":{"rendered":"https:\/\/grooni.com\/docs\/groovy-menu\/?page_id=2110"},"modified":"2021-01-16T06:35:59","modified_gmt":"2021-01-16T06:35:59","slug":"airi-theme","status":"publish","type":"page","link":"https:\/\/grooni.com\/docs\/groovy-menu\/theme-integration\/airi-theme\/","title":{"rendered":"Airi Theme"},"content":{"rendered":"<p>Add this code into <code>header.php<\/code> of your <a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\">child theme<\/a>.<\/p>\n<blockquote>\n<p>Please make all changes to the child theme files, and do not add the code directly to the theme files, otherwise after updating the theme your fixes will be lost<\/p>\n<\/blockquote>\n<p><code>header.php<\/code><\/p>\n<pre><code>\/\/ Groovy Menu integration code\nif ( function_exists( 'groovy_menu' ) ) {\n\tgroovy_menu();\n}\n<\/code><\/pre>\n<h3>Alternative method<\/h3>\n<p><code>header.php<\/code><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/**\n * The header for our theme\n *\n * This is the template that displays all of the &lt;head> section and everything up until &lt;div id=\"content\">\n *\n * @link https:\/\/developer.wordpress.org\/themes\/basics\/template-files\/#template-partials\n *\n * @package Airi\n *\/\n\n?>\n&lt;!doctype html>\n&lt;html &lt;?php language_attributes(); ?>>\n&lt;head>\n\t&lt;meta charset=\"&lt;?php bloginfo( 'charset' ); ?>\">\n\t&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t&lt;link rel=\"profile\" href=\"http:\/\/gmpg.org\/xfn\/11\">\n\n\t&lt;?php wp_head(); ?>\n&lt;\/head>\n\n&lt;body &lt;?php body_class(); ?>>\n&lt;div id=\"page\" class=\"site\">\n\t&lt;?php if ( function_exists( 'groovy_menu' ) ) { groovy_menu(); } ?>\n\t\n\t&lt;a class=\"skip-link screen-reader-text\" href=\"#content\">&lt;?php esc_html_e( 'Skip to content', 'airi' ); ?>&lt;\/a>\n\t\n\t&lt;?php if ( ! function_exists( 'groovy_menu' ) ) { ?>\n\t\t&lt;?php $menu_layout = airi_menu_layout(); ?>\n\t\t&lt;?php get_template_part( 'template-parts\/menus\/menu', $menu_layout['type'] ); ?>\n\t&lt;?php  } ?>\n\n\t&lt;div id=\"content\" class=\"site-content\">\n\n\t&lt;?php\n\t\tif ( !is_page_template( 'page-templates\/template_page-builder.php') ) {\n\t\t\techo '&lt;div class=\"container\">';\n\t\t\techo \t'&lt;div class=\"row\">';\n\t\t}\n\t?><\/code><\/pre>\n\n\n<div class=\"alert alert-warning\"><strong>Note:<\/strong> You can find the child theme for the Airi Theme in the <code>Groovy Menu &gt; Integration<\/code> section<\/div>","protected":false},"excerpt":{"rendered":"<p>Add this code into header.php of your child theme. Please make all changes to the child theme files, and do &hellip; <a href=\"https:\/\/grooni.com\/docs\/groovy-menu\/theme-integration\/airi-theme\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":2075,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/pages\/2110"}],"collection":[{"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/comments?post=2110"}],"version-history":[{"count":0,"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/pages\/2110\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/pages\/2075"}],"wp:attachment":[{"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/media?parent=2110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}