Skip Navigation

[Resolved] Customize “No Results Found” with a view

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Shane 6 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1125287

I am trying to:

Use a view in the no results archive page.

[wpv-no-items-found]
[wpv-post-body view_template="Base Pagina Bebes No Resultados"]
[/wpv-no-items-found]

Link to a page where the issue can be seen:

I expected to see:

The view result, but show nothing.

Instead, I got:

#1125425

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Filipe,

Thank you for contacting our support forum.

I don't believe that the wpv-post-body shortcode would work here .

What I recommend that you do is to add the no results found template directly within the [no-results-found] shortcode.

Thanks,
Shane

#1125435

Hi

I have a view for this because I am using DIVI, how can I customize the no results?

Can I do it with code?

Thanks

#1125439

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Filipe,

You mean you are using a view to display the no results found section ?

Just confirm this for me.

Thanks,
Shane

#1125482

Yes just like the code I sent.

[wpv-no-items-found]
[wpv-post-body view_template="Base Pagina Bebes No Resultados"]
[/wpv-no-items-found]

I got an solution but is not the best one. Woul be great you tell your team to get this for next realeases, normaly is needed show more than a text to the user in a no result page.

I put a div with an ID and with jquery I show or not the view. In a custom archive.

[wpv-no-items-found]<div id="no-resultados"></div>[/wpv-no-items-found]

<script>
jQuery(function ($) {
$( document ).ready(function() {
if ( $( "#no-resultados" ).length ) {
console.log('mostrar div ok');
$("br").remove();
$( "#nres-dav-arch" ).show();
}
});
});
</script>

<div id="nres-dav-arch" style="display: none;">
<?php echo do_shortcode('[et_pb_section global_module="213747"][/et_pb_section]');?>
</div>

#1125540

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Filipe,

Thank you for the suggestion.

Also you should be able to add this shortcode [et_pb_section global_module="213747"][/et_pb_section] directly to the no results found section.

Thanks,
Shane