This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

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

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #20585
    AnthonyAnthony
    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
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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.

    #20618
    AnthonyAnthony
    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
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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!

    #20659
    AnthonyAnthony
    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
    AnthonyAnthony
    Participant

    even if i have delete the wordpress cache

    #20661
    AnthonyAnthony
    Participant

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

    #20662
    AnthonyAnthony
    Participant

    Ok i have disable the autosugestion and its works now
    thanks

    #20664
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Great, thank you for letting me know!

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.