ewcadmin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to change the no-results.php textYes, thank you for your help; I really appreciate it.
Forum: Fixing WordPress
In reply to: How to change the no-results.php text“thank you for your help”
Forum: Fixing WordPress
In reply to: How to change the no-results.php textOhh, thank you very much!
I don’t know anything about PHP, I’ve heard of things being “escaped” but I don’t know what it means.
The code you supplied, showed up the back slashes, so I took them out but left all of the single quote/apostrophe unicode in.
Works a treat now.
Thinking about it, the problem must have been in the “I’m”.
I should have written the punctuation in unicode.
I think anyway: that’s what’s working now.
Would you know how I could insert my link to my comments page??
http://www.english-with-craig.co.uk/contactform.htmlThank you for you help.
CraigForum: Fixing WordPress
In reply to: How to change the no-results.php textHi, 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: http://codex.ww.wp.xz.cn/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 -->