Support » Fixing WordPress » Can't find the file to change the Search template when "no results" are shown

Viewing 4 replies - 1 through 4 (of 4 total)
  • Rafael Minuesa

    (@rafaelminuesa)

    search.php

    It’s the same file regardless of the search results.

    The part you need to change is between:
    <?php else : ?>
    and
    <?php endif; ?>

    hildergarn

    (@hildergarn)

    Hi Rafael. Mi template shows both lines in a different way. Let me share the whole search.php code file for you

    http://pastebin.me/3e96a03f6f856dc17c40c9dabb06ea1c

    Rafael Minuesa

    (@rafaelminuesa)

    That’s right, they are supposed to be different messages.

    Still, you just have to change those lines to whatever HTML/PHP you want, you can have the same message for both if that’s what you want.

    hildergarn

    (@hildergarn)

    Really, this is not making too much sense to me. Sadly, I’m not good at PHP so I’m lost 🙁

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't find the file to change the Search template when "no results" are shown’ is closed to new replies.