"Nothing To Show Right Now" Page

Hi,

I have a community website where there are post category pages which will from time to time be empty. When there are no posts, the category page gets the “Nothing to show right now” message.

Is it possible to override this page’s content using Layout Builder or any other method?

Many thanks,
Christopher

Hi Christopher,

Thanks for reaching out!

There’s no option to override the page content using the native functionality. What you are trying to accomplish will require custom coding and extending the templates in the child themes. Regretfully, customization is outside the scope of our theme support. You may seek 3rd party developers to help you with your problems or you can avail One where we can answer questions outside of the features of our theme.

If you are well oriented with the WordPress, here’s a tip on how you can accomplished it.

  • you need to extend this file in the child theme /framework/views/global/_content-none.php
  • create a global blocks for your layout
  • call the global blocks inside the content-none.php file.
  • then you can now override the “nothing to show right now content”

Hope that helps.

Hi @marc_a,

Thanks for the help. It is a good solution which I am able to enact, however, it did not do what I need.

I am using Pro Layouts for my Post Categories. I wanted to still show the Layout, even if there were no posts. My solution was to:

  • Create a placeholder post
  • In the dynamic section Blog Layout > Posts > Column 1 > Posts > Post I set a condition “Post (specific) Is Not {placeholder post}”, which hides the placeholder post previously created.
  • In the dynamic section Blog Layout > Posts, I added a new row after the Navigation element with a text element to display “No listings yet”.
  • Conditions are set for the new text element’s - “Post (specific) Is {choose placeholder post}”. This displays the message when only the placeholder is present so that the Layout is used, rather than the “Nothing to show right now message”. As soon as there is a second valid post in the category, the valid posts display in the Layout as usual.

Thanks for the pointer,
Christopher

Hi Christopher,

I am not sure what exactly you want to achieve. Do you want to show some specific text or content if that Post Category does not have any post? If that is the case, you can add some content into a specific section in your current layout and set a condition to it {{dc::looper:count}} is 0 as shown in the given screenshot. So the Section will be visible only if that Category does not have any post.

If that is not the case and you are trying to point out something else, please elaborate more to understand what you are trying to achieve.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.