Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Some Contents Missing › Reply To: Some Contents Missing
December 28, 2020 at 2:42 pm
#30913
Keymaster
Thanks!
The issue on that case is, that the fixed header is covering up the search bar visibility. The problem with that, that it is not possible to detect, the plugin can only scroll to the window viewport. I’m afraid I cannot do anything about it.
You can try a custom function to croll after the animation completes, but I am not sure if it will do any good:
add_action('wp_footer', 'asp_custom_wp_footer');
function asp_custom_wp_footer() {
?>
<script>
jQuery(function($) {
var t;
$('.asp_main_container').on('asp_search_end', function(){
clearTimeout(t);
var $this = this;
setTimeout(function(){
$('body,html').scrollTop($('body,html').scrollTop() - 120)
}, 740);
});
});
</script>
<?php
}