Snippets: Remove The Superfish Dropdown Script From Header Menu

// Remove superfish class
function myprefix_remove_superfish_dropdowns( $args ) {
	$menu_class = isset( $args['menu_class'] ) ? $args['menu_class'] : '';
	if ( $menu_class ) {
		$menu_class = str_replace( 'sf-menu', '', $menu_class );
		$args['menu_class'] = $menu_class;
	}
	return $args;
}
add_action( 'wpex_header_menu_args', 'myprefix_remove_superfish_dropdowns' );

// Remove superfish localized data - OPTIONAl!
function myprefix_alter_localized_array( $array ) {
	if ( is_array( $array ) ) {
		unset( $array['superfishDelay'] );
		unset( $array['superfishSpeed'] );
		unset( $array['superfishSpeedOut'] );
	}
	return $array;
}
add_filter( 'wpex_localize_array', 'myprefix_alter_localized_array' );
All PHP snippets should be added via a child theme's functions.php file.