[Resolved] Archvie page no results layout

Home Forums Support [Resolved] Archvie page no results layout

Home Forums Support Archvie page no results layout

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2316760
    Yannick

    Hello,

    I am using a cpt archive page with filters/facets. If the filter returns no posts, there isnt a “no results” layout in GeneratePress. I added a link that shows the problem in the private information.

    I thought I found an old forum post about that topic, but I am not able to find it again. Is there a way to add a “no results” layout to an archive page with GP Elements or some custom code?

    Regards
    Yannick

    #2317063
    Fernando
    Customer Support

    Hi Yannick,

    With your filter plugin, when there’s no results in your filter, it doesn’t use the no-results/404 template. It still uses your the archive template.

    You can try creating a script such that if the results are empty, display a text. It would probably be best to reach out to a developer with regards to this, or the the plugin developer of the filter.

    #2317286
    Yannick

    Hi Fernando,

    I did some more testing and I dont think that the problem is realted to the filter plugin.

    If I deactivate the GP block element I used as a content template the no results layout is shown. So I think the problem is realted to GP Elements and not my filter plugin? Or is it a problem with my setup that the no results layout is not working with a block element.

    Regards
    Yannick

    #2317323
    David
    Staff
    Customer Support
    #2317662
    Yannick

    Hi David, that is exactly what I was looking for. Thank you very much!

    A little feature request: It would be great if we could design the whole archive page in one block element and use the Query Loop Block. For my layout I have to use 6 different block elements and some custom functions. Designing an archive page would me a much easier, but unfortunetly there is no hook to replace the whole archive page (or i missed it. In that case you can ignore my request)

    #2319751
    David
    Staff
    Customer Support

    We will be adding a new hook and function to allow you to overwrite the Themes loop in the next main update to the theme. And we’re working on a GPP Elements update to make the process of creating Single and Archive templates a much simpler process 🙂

    #2373378
    Yannick

    Hi David, I am using the rc candidate of the new version right now and the loop template in combination with the query loop block is awesome! Thank you so much for that!

    #2373419
    David
    Staff
    Customer Support

    Great to hear that.
    We really appreciate you taking the time to test it… feedback is always welcome 🙂

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