Add this code into function.php
of your child theme.
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
function.php
if ( ! function_exists( 'gm_custom_pro_child_theme_integration' ) ) {
// Add Groovy Menu integration function.
add_action( 'wp_body_open', 'gm_custom_pro_child_theme_integration', 5 );
function gm_custom_pro_child_theme_integration() {
if ( function_exists( 'groovy_menu' ) ) {
add_action( 'x_after_site_begin', 'gm_custom_pro_child_theme_integration__start_cache', 0 );
add_action( 'x_after_view_header_base', 'gm_custom_pro_child_theme_integration__clear_cache', 99999 );
groovy_menu();
}
}
if ( ! function_exists( 'gm_custom_pro_child_theme_integration__start_cache' ) ) {
function gm_custom_pro_child_theme_integration__start_cache() {
ob_start();
}
}
if ( ! function_exists( 'gm_custom_pro_child_theme_integration__clear_cache' ) ) {
function gm_custom_pro_child_theme_integration__clear_cache() {
$cleared_html = ob_get_clean();
unset( $cleared_html );
}
}
}
Note: You can find the child theme for the PRO Theme in the
Groovy Menu > Integration section