Support for Envato Buyers Forums OldCar No message when no results found on search

Viewing 5 reply threads
  • Author
    Posts
    • #3681
      loreabagaz
      Member

      Hello again,
      I noticed that when searching a word in the sidebar menu there’s no result page loaded (example: http://dermatologia-bagazgoitia.com/?s=asdad)
      I would like to get a message similar to this one : http://www.usatoday.com/search/asdasd/
      Would that be posible?
      Thank you in advance πŸ™‚

    • #3684

      Hi

      Have you customized search.php file? By default demo, if there’s nothing in search result, it will show a message like http://demo.themevan.com/oldcar/?s=css
      If you want to show the message when there’s no search result, you should add the following php code in the search.php

      <?php if (!have_posts()):?>
      Your message here......
      <?php endif;?>

      This is only a general idea, because the customization issue is not include in the support service.

      Thanks!!

    • #3746
      loreabagaz
      Member

      Thanks for your answer. Unfortunately I cannot find “search.php” on WP/editor. Might be because it is translated into Spanish, however I cannot find any similar option….
      Thanks again πŸ™‚

    • #3753

      Hi

      I must find search.php file in your theme folder, but not on WP/editor.
      For example: /wp-content/themes/oldcar/search.php

      Also, If you used the old version of this theme, you can upload search.php file into the theme folder.

      Search.php file download: http://d.pr/f/Jldl

      Thanks

    • #3782
      loreabagaz
      Member

      Problem solved!
      Thanks so much!
      πŸ™‚

    • #3791

      It’s my pleasure! πŸ˜€

Viewing 5 reply threads
  • You must be logged in to reply to this topic.