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

// Add Groovy Menu integration function.
if ( ! function_exists( 'gm_custom_flatsome_child_theme_integration' ) ) {

	add_action( 'flatsome_after_body_open', 'gm_custom_flatsome_child_theme_integration', 5 );

	function gm_custom_flatsome_child_theme_integration() {
		if ( function_exists( 'groovy_menu' ) ) {

			add_action( 'flatsome_before_header', 'gm_custom_flatsome_child_theme_integration__start_cache', 0 );
			add_action( 'flatsome_after_header',  'gm_custom_flatsome_child_theme_integration__clear_cache', 99999 );

			groovy_menu();
		}
	}

	if ( ! function_exists( 'gm_custom_flatsome_child_theme_integration__start_cache' ) ) {
		function gm_custom_flatsome_child_theme_integration__start_cache() {
			ob_start();
		}
	}

	if ( ! function_exists( 'gm_custom_flatsome_child_theme_integration__clear_cache' ) ) {
		function gm_custom_flatsome_child_theme_integration__clear_cache() {
			ob_get_clean();
		}
	}
}
Note: You can find the child theme for the Flatsome theme in the Groovy Menu > Integration section