[Resolved] Conditional display of heading if view is empty or not have any results
This thread is resolved. Here is a description of the problem and solution.
Problem:
Conditional display of heading if view is empty or not have any results
Solution:
What you should do is, try to add a conditional block and configure it to check with view's shortcode and further select "number of items found in view" and setup your conditional display and then move the conditional block between view's output and view's loop section.
Hello. Thank you for contacting the Toolset support.
Can you please share the screeonshot of your view edit page that should help me to understand how you configured your view and where you are trying to display the heading title?
Hi Minesh,
this is the page I set up so far: hidden link
The contact cards and the header "Kontakte" are placed in a Kadence element.
I tried to put them in a conditional, but don't know, which parameters to set to show the whole element only in case it has some content in the view block.
Another issue is, that some of the toolset css defs are not executed from within the Kadence element: e.g. the grid of the tb-grid class works fine if a place the view in a page, but it breaks apart when a place it inside the Kadence element. (As a workaround I copied the css and assigned it to a custom css class. It's strange, anyway.)
Thanks for your support. Please let me know, if you need further informations.
Best, Lars
What you should do is, try to add a conditional block and configure it to check with view's shotcodes and further select "number of items found in view" and compare it as shown with the following image:
=> https://nimb.ws/h7n3lj
Then move the conditional block between view's output and view's loop section as shown with the following image:
=> https://nimb.ws/V2m0vy
And add whatever block or text you want to display within the conditional block. I hope this will help.
You can find all known issues with the following link, there are few related missing styles when using third-party block plugins:
- https://toolset.com/known-issues/
Please kindly open a new ticket with every new question you may have. This will help other users searching on the forum as well as help us to write correct problem resolution summery.