Hi, thanks.
The text I’d like to change is:
<p><?php _e( ‘Sorry, but nothing matched your search terms. Please try again with some different keywords.’, ‘sixhours’ ); ?></p>
I’d like to change the words and include a link to my contact page.
I don’t understand it because I can modify the existing text, but I can’t replace it with my own words.
I mean instead of, “Sorry, but nothing matched your search terms. Please try again with some different keywords.”
“Sorry, I haven’t written anything like that yet. Please send me a message and I’ll answer it for you”.
If I change the text to something like “orry, but nothg atched your search terms. Please try again with sooooome differen kewords.”
It’s fine!?
It makes NO sense to me at all.
Thank you very much for answering me.
Craig
<?php
/**
* The template part for displaying a message that posts cannot be found.
*
* Learn more: https://codex.www.ads-software.com/Template_Hierarchy
*
* @package Sixhours
* @since Sixhours 1.0
*/
?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'sixhours' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'sixhours' ), admin_url( 'post-new.php' ) ); ?></p>
<?php elseif ( is_search() ) : ?>
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'sixhours' ); ?></p>
<?php get_search_form(); ?>
<?php else : ?>
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'sixhours' ); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div><!-- .entry-content -->
</article><!-- #post-0 .post .no-results .not-found -->