This topic contains 3 replies, has 2 voices, and was last updated by
- December 17, 2018 at 6:39 pm #20430Participant
I hope you’re well :).
I wonder is there a way to include a HTML link in the ‘results not found’ copy that shows for the form?
If you try a search for a random piece of text on the search field here: http://kemplittle.com.cpanel2-realityhouse.temporarywebsiteaddress.com/ you will see where I’ve tried to add a link but it shows as HTML, anything we can do to get that to work? 🙂
TonyaDecember 17, 2018 at 10:13 pm #20443Keymaster
Well, the text in that field is HTML escaped, so that won’t work. But there is a different way, by results templating. If you read up on that knowledge base, it will explain some basic details.Best,
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.
If you like my products, don't forget to rate them on codecanyon :)
December 18, 2018 at 2:43 pm #20460Participant
This is perfect, thanks ever so much, now added and working great :).
Thank you for your quick help as always, so much appreciated.
Have a lovely Christmas and all the best for 2019.
TonyaDecember 18, 2018 at 3:43 pm #20461
You must be logged in to reply to this topic.