Home Forums Free Themes Magzimum How to add "Nothing found" on search results?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3759
    scorbelli
    Participant

    Hello 🙂

    thanks for all your previous suggestion!

    I was wondering how to add “Nothing found” when the search engine of wordpress doesnt give any result. Currently it seems to me that it doesnt show anything.

    Thanks 😉

    #3760
    wensolutions
    Keymaster

    Hello @scorbelli,
    Hope you are doing good.
    You can achieve this by minor changing the code. Go to themes->magzimum->search.php file and make the following change.

    Replace
    <?php get_template_part( 'content', 'none' ); ?>

    By
    <?php get_template_part( 'template-parts/content', 'none' ); ?>

    This should do the trick to show “Nothing found” when the search couldn’t find any result.
    Hope this will help resolve your issue.

    Regards!!

    #3761
    scorbelli
    Participant

    Thank you very much 🙂 It perfectly works as always!

    Have a great day!

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