Added condition to prevent showing `Sorry, could not find anything` message on featured page. This should only be shown when a search term has been submitted.

This commit is contained in:
And Finally 2021-10-13 18:39:57 +01:00
parent e12efaacde
commit 26affe1e8a
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ function wccom_get_star_class( $rating, $index ) {
<div class="wrap">
<div class="marketplace-content-wrapper">
<?php if ( count( $addons ) == 0 ) : ?>
<?php if ( ! empty( $search ) && count( $addons ) == 0 ) : ?>
<h1 class="search-form-title">
<?php esc_html_e( 'Sorry, could not find anything. Try searching again using a different term.', 'woocommerce' ); ?></p>
</h1>