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

Reply To: Linking Breaks when using Filters

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Linking Breaks when using Filters Reply To: Linking Breaks when using Filters

#31485
Ernest MarcinkoErnest Marcinko
Keymaster

Actually, I may have found a solution totally by accident. I checked the event handlers on the elements and found just the correct function. I constructed a custom code for you based on our plugin API. Props to them as well for a very simple function.

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_api_sample_code');
function asp_api_sample_code() {
	?>
	<script>
	jQuery(function($){
		$(".asp_main_container").on("asp_search_end", function(){
			if ( typeof EleCustomSkinItemLink != 'undefined' ) {
				EleCustomSkinItemLink();
			}
		});
	});
	</script>
	<?php
}

Clear all layers of cache (if you have any), and then this should do the trick.