{"id":2159,"date":"2021-01-15T15:27:02","date_gmt":"2021-01-15T15:27:02","guid":{"rendered":"https:\/\/grooni.com\/docs\/groovy-menu\/?page_id=2159"},"modified":"2021-01-15T15:27:03","modified_gmt":"2021-01-15T15:27:03","slug":"total-theme","status":"publish","type":"page","link":"https:\/\/grooni.com\/docs\/groovy-menu\/theme-integration\/total-theme\/","title":{"rendered":"Total 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_custom_total_child_theme_integration' ) ) {\n\n\tadd_action( 'wp_body_open', 'gm_custom_total_child_theme_integration', 5 );\n\n\tfunction gm_custom_total_child_theme_integration() {\n\t\tif ( function_exists( 'groovy_menu' ) ) {\n\n\t\t\t\/\/ Output Groovy Menu plugin.\n\t\t\tgroovy_menu();\n\n\t\t\t\/\/ Wrap &gt; Top\n\t\t\tremove_action( 'wpex_hook_wrap_top', 'wpex_top_bar', 5 );\n\t\t\tremove_action( 'wpex_hook_wrap_top', 'wpex_header', 10 );\n\n\t\t\t\/\/ Main &gt; Top\n\t\t\t\/\/remove_action( 'wpex_hook_main_top', 'wpex_page_header', 10 );\n\t\t\t\/\/remove_action( 'wpex_hook_main_top', 'wpex_post_slider', 10 );\n\t\t}\n\t}\n\n}\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 Total 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\/total-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\/2159"}],"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=2159"}],"version-history":[{"count":0,"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/pages\/2159\/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=2159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}