Added text to be displayed when no search results

Added text to be displayed when no search results found , fixes issue #30588
This commit is contained in:
Sandeep Rajakrishnan 2021-09-03 19:55:18 +05:30 committed by GitHub
parent 2d005836eb
commit 4bd9d696d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,12 @@ $current_section_name = __( 'Browse Categories', 'woocommerce' );
<div class="wrap">
<div class="marketplace-content-wrapper">
<?php if ( empty( $search ) ) : ?>
<h1 class="search-form-title">
<?php // translators: search keyword. ?>
<?php esc_html_e( 'Sorry, could not find anything. Try searching again using a different term.', 'woocommerce' ); ?></p>
</h1>
<?php endif; ?>
<?php if ( ! empty( $search ) ) : ?>
<h1 class="search-form-title">
<?php // translators: search keyword. ?>