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

Reply To: ASP search duplicate instance and settings issue

Home Forums Product Support Forums Ajax Search Pro for WordPress Support ASP search duplicate instance and settings issue Reply To: ASP search duplicate instance and settings issue

#27691
Ernest MarcinkoErnest Marcinko
Keymaster

Hi Sandy,

It’s a shame they don’t help you with that.

Well, I can try to recommed some custom code to somehow force that function – but this would be way better to resolve without the sticky menu duplication, that prevents any event based thing to be placed to the header.

First, use this custom CSS:

.asp_m .asp_sb {
    display: none !important;
}

.search-form-inheader {
    z-index: 1 !important;
}

.sticky-effects.search-form-inheader {
    z-index: 9999999 !important;
}

Then, some custom code might be required. Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!

add_action('wp_footer', 'asp_try_fixing');
function asp_try_fixing() {
	?>
	<script>
	jQuery(function($){
		$('.icon-search-onclick').on('click', function(){
			setTimeout(function(){
				ASP.fixClones();
			}, 500);
		});
	});
	</script>
	<?php
}

Please note, that this may not work at all.