Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Default url page for not found result
This topic contains 8 replies, has 2 voices, and was last updated by Ernest Marcinko 4 years, 5 months ago.
- AuthorPosts
- December 29, 2018 at 4:35 am #20585
Hello
i want to add a custom url when result are not found : https://www.cadeaux-hightech.fr/cadeau-entreprise/france/It will be a neutral page, for every result not found for example : https://www.cadeaux-hightech.fr/cadeau-entreprise/votre-ville
I didnt have see this feature and also not on your documentationregards
December 31, 2018 at 9:29 am #20597Hi!
Well, this is only possible by results templating. If you read up on that knowledge base, it will explain some basic details.
Basically, you need to make a directory in your theme/child theme directory called asp. Then copy over the no-results.php file from the wp-content/plugins/ajax-search-pro/includes/views/results/ directory. Then making changes directly to this file is the key, as this is included when printing the ‘no results’ text. You can add the link or any custom HTML code in there.I am not sure how experienced you are in coding, so I constructed a no-results.php file, which includes a link to that destination. You can change that on lines 31-33. Let me know if you need help with this.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 2, 2019 at 4:42 pm #20618Hello thanks for the help
i do not have “ajax-search-pro” on my plugin listis it possible to share you my FTP?
January 3, 2019 at 10:33 am #20622Hi,
I have logged in via FTP, that you included in your ticket details, but it looks like it’s a login to a different server/account/site. You can’t see the plugin files, because this is a login to a different site. Can you check it on your cPanel/Hosting panel? There might be a different login to this site. Thank you!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 7, 2019 at 2:46 pm #20659hello
i have update the .php file and it change nothing on the frontend :https://www.cadeaux-hightech.fr/cadeau-entreprise/france/
the no result don”t appearJanuary 7, 2019 at 2:47 pm #20660even if i have delete the wordpress cache
January 7, 2019 at 2:50 pm #20661I didnt have FTP accès, its on a dedicated serveur
January 7, 2019 at 3:20 pm #20662Ok i have disable the autosugestion and its works now
thanksJanuary 7, 2019 at 5:35 pm #20664Great, thank you for letting me know!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.