add_action( 'wp_footer', function() { ?>
<script>
( function( $ ) {
'use strict';
$( '.search-toggle-li' ).hover( function() {
$( this ).toggleClass( 'active' );
$( '#searchform-dropdown' ).toggleClass( 'show' );
} );
} ) ( jQuery );
</script>
<?php } );