Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Finetuning search results › Reply To: Finetuning search results
August 1, 2022 at 3:16 pm
#38637
Keymaster
Hi Georg,
You can use the results shortcode for that. Place that anywhere on the same page, the results are going to be displayed there. The floating results list can not be displayed over the search bar.
Here it is possible to change the target window of the results. Unfortuantely that is global. To change that on attachments only, you may need a custom code instead of that option.
add_action('wp_footer', 'asp_api__code', 99999);
function asp_api__code() {
?>
<script>
(function($){
$(".asp_m").on("asp_results_show", function(){
$('.asp_r .asp_r_attachment').find('a').prop('target', '_blank');
});
})(WPD.dom);
</script>
<?php
}