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

Reply To: result page

#42164
Ernest MarcinkoErnest Marcinko
Keymaster

Check if your frame name has not been changed, in the code it’s “iframe1”. There was no change in the scripts for the most recent releases, so this should still work just fine.

Also, you can try a different variation:

add_action('wp_footer', 'asp_add_footer_script_2', 9999);
function asp_add_footer_script_2() {
	?>
	<script>
setTimeout(function(){
		WPD.ajaxsearchpro.helpers.openInNewTab = function(url) {
                  Object.assign(document.createElement('a'), { target: 'iframe1', href: url}).click();
                }
}, 2000);
	</script>
	<?php
}