Browse Source

Fixed search.php error

tags/v1.0.1
sandiamesa_fqqh1o 7 months ago
parent
commit
534a441955
1 changed files with 8 additions and 9 deletions
  1. +8
    -9
      search.php

+ 8
- 9
search.php View File

@@ -4,10 +4,9 @@
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @package Simple_Nineteen
* @since 1.0
* @version 1.0
* @version 1.0.1
*/

get_header(); ?>
@@ -16,9 +15,9 @@ get_header(); ?>

<header class="page-header">
<?php if ( have_posts() ) : ?>
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyseventeen' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'simplenineteen' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
<?php else : ?>
<h1 class="page-title"><?php _e( 'Nothing Found', 'twentyseventeen' ); ?></h1>
<h1 class="page-title"><?php _e( 'Nothing Found', 'simplenineteen' ); ?></h1>
<?php endif; ?>
</header><!-- .page-header -->

@@ -42,16 +41,16 @@ get_header(); ?>

the_posts_pagination(
array(
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>',
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>',
'prev_text' => simplenineteen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'simplenineteen' ) . '</span>',
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'simplenineteen' ) . '</span>' . simplenineteen_get_svg( array( 'icon' => 'arrow-right' ) ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'simplenineteen' ) . ' </span>',
)
);

else :
?>

<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyseventeen' ); ?></p>
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'simplenineteen' ); ?></p>
<?php
get_search_form();



Loading…
Cancel
Save