- July 1, 2017 at 11:28 am #13842
I have a search field in the page header; And the results appear in another page.
Currently the search field in the header works, but shows me the results via the wordpress search page.
I want to display the results in my page “rechercher”
I use Visual composer, I put in my page the item “result”.
I saw in “logic & behavior” => Action when clicking the magnifier icon => “redirect to: custom URL”; Or I put the address of my page “search”.
It does not work … What is the right configuration?
Thanks in advance for your help.
J.July 1, 2017 at 4:08 pm #13845
WordPress unfortunately does not work that way, you cannot simply create a page and ‘redirect’ the results there. The search results are always handler by the search.php file in your theme directory, which by default is triggered whenever the ‘s’ query variable is set.
The only thing you can do is to change the site search URL to a ‘nice url’, and create a redirection rule for it via code, see this tutorial: http://wpengineer.com/2258/change-the-search-url-of-wordpress/
Then, you can enter the same custom url te search settings. I would only recommend doing the things in the tutorial if you have experience with .htaccess redirection rules, and I highly recommend having a full site back-up before doing any modification at all.Best,
If you like my products, don't forget to rate them on codecanyon :)
July 4, 2017 at 11:16 am #13868
Thank you very much for help and clarification.
it helps me a lot.
You must be logged in to reply to this topic.