Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › result page › Reply To: result page
April 10, 2023 at 4:07 pm
#42164
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
}