Default url page for not found result

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

 
Keymaster
3 years ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #20585

    Participant

    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 documentation

    regards

    #20597

    Hi!

    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 :)


    #20618

    Participant

    Hello thanks for the help
    i do not have “ajax-search-pro” on my plugin list

    is it possible to share you my FTP?

    #20622

    Hi,

    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 :)


    #20659

    Participant

    http://prntscr.com/m41y4j

    hello
    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 appear

    #20660

    Participant

    even if i have delete the wordpress cache

    #20661

    Participant

    I didnt have FTP accès, its on a dedicated serveur

    #20662

    Participant

    Ok i have disable the autosugestion and its works now
    thanks

    #20664

    Great, thank you for letting me know!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.