{"id":2126,"date":"2021-01-15T13:45:55","date_gmt":"2021-01-15T13:45:55","guid":{"rendered":"https:\/\/grooni.com\/docs\/groovy-menu\/?page_id=2126"},"modified":"2021-01-15T13:45:56","modified_gmt":"2021-01-15T13:45:56","slug":"native-theme","status":"publish","type":"page","link":"https:\/\/grooni.com\/docs\/groovy-menu\/theme-integration\/native-theme\/","title":{"rendered":"Native Theme"},"content":{"rendered":"<p>Add this code into <code>function.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>function.php<\/code><\/p>\n<pre><code>\/\/ ------------------------------------------------------\n\/\/         Groovy Menu plugin integration\n\/\/ ------------------------------------------------------\nif ( ! function_exists( 'gm_child_show_groovy_menu' ) ) {\n\tfunction gm_child_show_groovy_menu() {\n\n\t\t\/\/ Work only if Groovy Menu plugin active.\n\t\tif ( function_exists( 'groovy_menu' ) ) {\n\n\t\t\t\/\/ Override DFD header clas by empty class.\n\t\t\tif ( ! class_exists( 'Dfd_Header_Constructor' ) ) {\n\t\t\t\tclass Dfd_Header_Constructor {\n\t\t\t\t\tfunction __construct() {\n\t\t\t\t\t\t\/\/ empty...\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\/\/ Output Groovy Menu.\n\t\t\tgroovy_menu();\n\t\t}\n\t}\n}\n\n\/\/ Add action for early BODY start.\nadd_action( 'dfd_after_body_start', 'gm_child_show_groovy_menu', 5 );\n<\/code><\/pre>\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"alert alert-warning\"><strong>Note:<\/strong> You can find the child theme for the Native Theme in the <code>Groovy Menu &gt; Integration section<\/code><\/div>","protected":false},"excerpt":{"rendered":"<p>Add this code into function.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\/native-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\/2126"}],"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=2126"}],"version-history":[{"count":0,"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/pages\/2126\/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=2126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}