Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Custom results page with Elementor
- This topic has 7 replies, 2 voices, and was last updated 3 years, 10 months ago by
Ernest Marcinko.
-
AuthorPosts
-
July 24, 2022 at 6:20 pm #38544
Amit250
ParticipantHey Ernest,
I have an issue with the custom results page with Elementor. I’m trying to “connect” two different search bars, and it’s not working that well. Let me explain.
For the homepage, I’m using a clean with no filters search bar. I want to add another more advanced search with filters for the results page. Then redirect searches from the homepage to the results page.
When I run a search on the homepage, it redirects me to the results page and displays the term in the search bar, but the results are incorrect until I click the magnifier icon or press the return button.
When I use the same search bar on both pages, it works. So my question is if there’s a way to create this redirection with two different search bars?
Hope I was clear enough
July 24, 2022 at 6:34 pm #38545Amit250
ParticipantYou cannot access this content.
July 25, 2022 at 2:38 pm #38551Ernest Marcinko
KeymasterHi,
I think it could be doable. What you need to do is to redirect to the custom page via the first search bar, and appending the second search bar default query arguments.
On the redirection configuration on the first search, choose custom URL and put this custom URL there:
search-results/?asp_ls={phrase}&asp_active=1&asp_force_reset_pagination=1&p_asid=44&p_asp_data=1&termset[software][]=-1&termset[platform][]=-1&termset[plan][]=-1&customset[]=tool&asp_gen[]=excerpt&asp_gen[]=content&asp_gen[]=title&filters_initial=1&filters_changed=0&qtranslate_lang=0¤t_page_id=27760That should redirect as if it was the second search bar, with the default filter states, but with the search phrase from the first search.
July 25, 2022 at 6:56 pm #38553Amit250
ParticipantI did as you said, but it doesn’t work. Although I add these default query arguments when the page is redirecting, it changes them to this:
search-results/?asp_ls={phrase}&asp_active=1&asp_force_reset_pagination=1&p_asid=44&p_asp_data=1&termset[software][]=-1&termset[platform][]=-1&termset[plan][]=-1&customset[]=tool&asp_gen[]=excerpt&asp_gen[]=content&asp_gen[]=title&filters_initial=1&filters_changed=0&qtranslate_lang=0%C2%A4t_page_id=27760&asp_active=1&p_asid=37&p_asp_data=1&customset[]=tool&asp_gen[]=excerpt&asp_gen[]=content&asp_gen[]=title&filters_initial=1&filters_changed=0&qtranslate_lang=0¤t_page_id=986July 25, 2022 at 7:11 pm #38554Amit250
ParticipantYou cannot access this content.
July 26, 2022 at 9:44 am #38574Ernest Marcinko
KeymasterThank you!
It was only the search override causing the conflict. It appends additional arguments, which are not needed in this special case. I turned it off, now it seems to work okay.
July 26, 2022 at 10:45 am #38576Amit250
ParticipantYes, it works perfectly now!
As always, you can be counted on.Thanks a lot Ernest!
July 26, 2022 at 11:43 am #38577Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.