This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Few errors I cant solve out :(

#22621
Ernest MarcinkoErnest Marcinko
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