Skip Navigation

[Resolved] Archive Search Page: "Show only filter options that would produce results"

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 8 months, 4 weeks ago.

Assisted by: Minesh.

Author
Posts
#2685456

Hi,
I have an archive search page (hidden link) where I am trying to avoid the display of a blank page when there is no results.

I have seen the "Show only filter options that would produce results" option, and I wonder if it would be possible to make the options that don't produce results still visible, but greyed out and unselectable. The default behaviour, where the checkbox disappear and the dropdown doesn't seem to work seems a little weird to me. I think it can be confusing for the users.

If that is not possible, as an alternative would it be possible to add a message for the user saying that there is no result available and that he/she can send a message via contact form...?

Thank you in advance

Regards

Luca

#2685539

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I see you are using Blocks and with that it's not possible.

If that is not possible, as an alternative would it be possible to add a message for the user saying that there is no result available and that he/she can send a message via contact form...?
===>
Do you mean you want to replace the "No Items found" message with your message and link that redirect user to contact form?

#2685540

Hi, thank you Minesh.

At the moment, I don't even have "No items found" displayed, but just an empty page. You can only see a "0 results" message but that's because I have [wpv-found-count] on the page.

Ideally, I would like to have an image with a message (heading + paragraph) and also a contact form. If adding a Gravity form is complicated or impossible, I guess a link to an existing contact form would be fine.

What method instead of using Toolset Blocks would have alllowed me to achieve the first solution?

Kind Regards,

Luca

#2685542

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

What if you create a content template and dont assign this content template to any post type.

Add your desired content you want to display to this content template and add this content template using the shortcode to your view's No items found section.

[wpv-post-body view_template="content-template-slug"]

Where:
- Replace "content-template-slug" with your original content template slug.

Does this makes sense?

#2685545

It does makes sense, I can try to do that. Thank you Minesh.

For the next time, in order to achieve the first solution, what should I have used instead of Toolset Blocks?

Best Regards,
Luca