Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search Bar & Display Issues › Reply To: Search Bar & Display Issues
Hi,
The first issue with the focus is caused by a 3rd party script, related to the menu controller. I guess the menu is not designed to expect more complex elements and it applies a custom click handler, which causes the problem.
Possible solutions to that is to either modify the menu script accordingly, so it does not do anything to the search input, or move the search out of a menu item scope, and move it next to the menu instead – that could also work.
There is probably a way to fix it via custom code to turn off the event listeners. Try adding this code via the Code Snippets plugin or 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',
function () {
?>
<script>
jQuery(function($){
jQuery('.asp_w_container').closest('.menu-item').off();
});
</script>
<?php
}
);
I can’t guarantee anything though, as this issue is not caused by the plugin.
As for the results alignment, you can change it here: https://i.imgur.com/hdgFo0f.png