Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Setup Question › Reply To: Setup Question
June 8, 2021 at 3:45 pm
#33556
Keymaster
Thank you, this should be sufficient.
Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
add_action('wp_footer', 'wp_footer_add_js_opener');
function wp_footer_add_js_opener() {
?>
<script>
(function(){
setTimeout(function() {
document.querySelectorAll('[class*=asp_single_highlighted]').forEach(function(el){
el.parentElement.click();
})
}, 2500);
}())
</script>
<?php
}