This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Search Pro Setting Questions

#37718
Ernest MarcinkoErnest Marcinko
Keymaster

1. Sorry, I forgot this one. It is caused by this script: https://diamondchain.com/wp-content/themes/TheDiamondChainCompany/assets/js/foundation.js?ver=6.2
There is an event listener for the “keydown” event which cancels the “space” key. The best solution would be to remove or edit that conflicting code, as it is directly casuing the issue.

You can also try a custom code to prevent that, although I can not promise it will work.

Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.

add_action('wp_footer', 'asp_add_footer_script', 99999);
function asp_add_footer_script() {
	?>
	<script>
	(function($){
		setTimeout(function(){
			$('li.menu-item').off('keydown');
		}, 200);
	}(jQuery))
	</script>
	<?php
}