Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Default url page for not found result
- This topic has 8 replies, 2 voices, and was last updated 7 years, 4 months ago by
Ernest Marcinko.
-
AuthorPosts
-
December 29, 2018 at 4:35 am #20585
Anthony
ParticipantHello
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 #20597Ernest Marcinko
KeymasterHi!
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.
January 2, 2019 at 4:42 pm #20618Anthony
ParticipantHello 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 #20622Ernest Marcinko
KeymasterHi,
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!
January 7, 2019 at 2:46 pm #20659Anthony
Participanthello
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 #20660Anthony
Participanteven if i have delete the wordpress cache
January 7, 2019 at 2:50 pm #20661Anthony
ParticipantI didnt have FTP accès, its on a dedicated serveur
January 7, 2019 at 3:20 pm #20662Anthony
ParticipantOk i have disable the autosugestion and its works now
thanksJanuary 7, 2019 at 5:35 pm #20664Ernest Marcinko
KeymasterGreat, thank you for letting me know!
-
AuthorPosts
- You must be logged in to reply to this topic.