Tell us what you are trying to do?
I am trying to insert custom text instead of the "No results found" in a relationship search field. In the attached image I am looking for a Director to attach to a film (called a Flix on the site).
I have set-up the Flix to Director relationship so that when I try and add a director it gives me a list of pre-populated directors.
However I want to give people the option of adding a director to the site if they can't find the one they need.
Currently the link to add a new director is under the Director field: "Can't find your director? Add a director"
I would like to show this text within the search instead of "No results found"
Is there any documentation that you are following?
No
Is there a similar example that we can see?
No
What is the link to your site?
hidden link
Hello,
The text "No results found" is defined in Toolset Blocks/Views plugin file:
plugins\toolset-blocks\vendor\toolset\toolset-common\inc\toolset.assets.manager.class.php
line 749:
'noResults' => __( 'No results found', 'wpv-views' ),
You can override it with WP filter hook gettext, see WP document:
https://developer.wordpress.org/reference/hooks/gettext/
Hi,
Do you think you could provide me with the full required code that I need to add to my functions.php
I'm not a coder and am worried that I am going to break some thing 🙁
Thanks
James
My issue is resolved now.
Thanks so much! It's working perfectly. Really appreciate helping a "non-coder" 😉