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:
parent
e12efaacde
commit
26affe1e8a
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue