• Resolved manyoyo

    (@manyoyo)


    Hello, thank you for all the great themes. I’m trying to figure out how to enable a ‘no results found’ page for Norrsken, if a user searches but nothing matches. At the moment all they would see is a blank page. Is there a simple way to do this? And if not, is there a way to disable search entirely on the site? (I noticed that on your Norrsken demo site, there is no search field, but the page is also blank https://norrsken.andersnoren.se/?s=test)

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter manyoyo

    (@manyoyo)

    Hello again,

    I noticed the update to the theme, on 12 October…

    https://themes.trac.www.ads-software.com/browser/norrsken/1.0.7/patterns/hidden-loop-no-results.php?rev=245046

    …but I still can’t see a ‘no results found’ message at this site when I try it.

    https://interzone.today/?s=zugzwang

    Do you know what I need to do to get it working? Any pointers would be greatly appreciated, thank you

    Theme Author Anders Norén

    (@anlino)

    Hey @manyoyo,

    Thanks for posting this thread – I forgot to post here when I released the update you mention. If you’ve made changes to the Search Results template in the Site Editor, you’ll need to reset the template for the change in the 1.0.7 update to take effect.

    1. Go to Appearance → Editor.
    2. Click Templates in the lefthand sidebar.
    3. Locate “Search Results” in the grid, click the three dots, and then the reset link.

    If you haven’t made any changes to the Search Results template, you might need to empty the cache on your site. You can see on the demo site how the new no results message should look.

    — Anders

    Thread Starter manyoyo

    (@manyoyo)

    Thanks so much @anlino, the demo site is exactly what I wanted, but I can’t seem to get it to work on my site (I haven’t changed the template). I’ve tried clearing the cache but no luck… What should I try next?

    Cheers, Gareth

    Theme Author Anders Norén

    (@anlino)

    @manyoyo Hmm. If you go to Appearance → Editor → Templates and click the Search Results template, do you see the No Results block in the editor?

    Thread Starter manyoyo

    (@manyoyo)

    @anlino I saw that block before I published any test posts, I think… But now I’ve started posting posts, I just see the posts…

    Thread Starter manyoyo

    (@manyoyo)

    This what I see when I go to Appearance → Editor → Templates and click the Search Results template

    Theme Author Anders Norén

    (@anlino)

    @manyoyo I steered you wrong in the first question. If you go to Appearance → Editor → Patterns → General, check if you can reset the “loop” template part. If you can, doing so will add the “No Results” text to the search page.

    Thread Starter manyoyo

    (@manyoyo)

    @anlino Ah ha! Thanks so much, Anders, that did the trick.

    • This reply was modified 1 month ago by manyoyo.
Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.