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

Reply To: One Filter for Two Elementor Widgets

Home Forums Product Support Forums Ajax Search Pro for WordPress Support One Filter for Two Elementor Widgets Reply To: One Filter for Two Elementor Widgets

#46359
Ernest MarcinkoErnest Marcinko
Keymaster

I think you could hook into the asp_search_start event, which is fired when a search is triggered via ajax search pro.

Something like:

document.querySelectorAll(".asp_main_container").forEach(function(el){
  el.addEventListener("asp_search_start", function(event) { 
    document.querySelector("#featured_element").style.display = 'none';
  });
});