Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Few errors I cant solve out :( › Reply To: Few errors I cant solve out :(
May 14, 2019 at 9:25 am
#22621
Keymaster
Hi,
1. In this case, try this custom script to add the class to the main search container:
jQuery(function($){
$('input.orig').on('focus', function(){
$(this).closest('.asp_m').addClass('asp_focused');
}).on('blur', function(){
$(this).closest('.asp_m').removeClass('asp_focused');
});
});
This will add the ‘asp_focused’ class. Then use a custom CSS like so:
.asp_m.asp_focused {
min-width: 100% !important;
}
2. This might be doable without any custom CSS. Try changing the results position and the width and the margin: https://i.imgur.com/Sny5uGm.png